akveo / akveo/nebular

NbCheckbox does not uncheck when checked = false

未關閉
#2,422 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
needs info
主要語言
TypeScript
星號
8.1k
分支
1.5k
PR 合併指標
30 天內沒有已合併 PR

描述

### Issue type

**I'm submitting a ...**
* [ x ] bug report
* [ ] feature request

### Issue description

**Current behavior:**
NbCheckbox does not accept value (warning says it will be removed on 5.0.0, I'm running 5.1.0 value still remains there) and [checked]="false" does not work. I've tried to use [checked]="model.prop" where model.prop is a boolean and it doesn't work checkbox is always checked.

**Expected behavior:**
When [checked]="false" the checkbox should be unchecked

**Steps to reproduce:**
Create a checkbox in any form and add [checked]="false".

**Related code:**
```

My property value: {{ model.prop }}

```

-->

### Other information:

**npm, node, OS, Browser**
```
Angular CLI: 9.1.8
Node: 12.16.1
OS: darwin x64

Angular: 9.1.11
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

```

**Angular, Nebular**
```
"@nebular/auth": "^5.1.0",
"@nebular/eva-icons": "5.1.0",
"@nebular/firebase-auth": "^5.1.0",
"@nebular/security": "^5.1.0",
"@nebular/theme": "^5.1.0",
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。