Skip to content

Commit fbe12a9

Browse files
denStrigonnixaa
authored andcommitted
fix(buttons): Uncheck checkbox after click (#1721)
Closes #1697
1 parent 22c161f commit fbe12a9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/app/pages/ui-features/buttons/button-groups/button-groups.component.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,22 @@
118118
</div>
119119
</div>
120120
<div class="btn-group btn-group-toggle btn-divided-group btn-group-full-width" data-toggle="buttons">
121-
<label ngbButtonLabel class="btn btn-primary" [class.active]="dividedButtonGroupTwo.left">
121+
<label ngbButtonLabel
122+
class="btn btn-primary"
123+
[class.active]="dividedButtonGroupTwo.left"
124+
[class.focus]="dividedButtonGroupTwo.left">
122125
<input ngbButton type="checkbox" [(ngModel)]="dividedButtonGroupTwo.left"> Left
123126
</label>
124-
<label ngbButtonLabel class="btn btn-primary" [class.active]="dividedButtonGroupTwo.middle">
127+
<label ngbButtonLabel
128+
class="btn btn-primary"
129+
[class.active]="dividedButtonGroupTwo.middle"
130+
[class.focus]="dividedButtonGroupTwo.middle">
125131
<input ngbButton type="checkbox" [(ngModel)]="dividedButtonGroupTwo.middle"> Middle
126132
</label>
127-
<label ngbButtonLabel class="btn btn-primary" [class.active]="dividedButtonGroupTwo.right">
133+
<label ngbButtonLabel
134+
class="btn btn-primary"
135+
[class.active]="dividedButtonGroupTwo.right"
136+
[class.focus]="dividedButtonGroupTwo.right">
128137
<input ngbButton type="checkbox" [(ngModel)]="dividedButtonGroupTwo.right"> Right
129138
</label>
130139
</div>

0 commit comments

Comments
 (0)