Skip to content

Commit 89e02fa

Browse files
authored
Removing validation of indeterminate state from checkbox 'checked' prop (#1087)
* Removing validatation of indeterminate state * Update changelog
1 parent 48a44d0 commit 89e02fa

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

projects/swimlane/ngx-ui/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## HEAD (unreleased)
44

5+
- Fix: Removing the `indeterminate state value validation` in the 'checked' input of the checkbox component
6+
57
## 49.0.0 (2025-02-11)
68

79
- Enhancement (`ngx-checkbox`): a new look is available that displays `indeterminate` state.

projects/swimlane/ngx-ui/src/lib/components/checkbox/checkbox.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class CheckboxComponent implements ControlValueAccessor {
5757
// eslint-disable-next-line @angular-eslint/no-input-rename
5858
@Input('checked')
5959
set value(value: boolean) {
60-
if (this._value !== value && !this.indeterminate) {
60+
if (this._value !== value) {
6161
this._value = value;
6262
this.cdr.markForCheck();
6363
this.onChangeCallback(this._value);

0 commit comments

Comments
 (0)