Skip to content

Commit 5dfa704

Browse files
committed
fix bug to when is checkbox, execute toggleTriState function
1 parent 5aa2507 commit 5dfa704

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

projects/some-angular-utils/filter/src/lib/components/custom-input/custom-input.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@if (formControlItem) {
2-
<div class="sau-input" [class.sau-input--slide-tri-state]="type === 'checkbox'" (click)="toggleTriState($event)">
2+
<div class="sau-input" [class.sau-input--slide-tri-state]="type === 'checkbox'"
3+
(click)="type == 'checkbox' && toggleTriState($event)">
34

45
@if (type !== 'checkbox') {
56
<label class="sau-input__label">

0 commit comments

Comments
 (0)