Skip to content

Commit b4ca468

Browse files
authored
Merge pull request #2177 from yinglejia/number-input
fix(number-input): add disabled attribute to +/- buttons
2 parents af188d4 + 5da3681 commit b4ca468

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/number-input/number.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export class NumberChange {
8383
<button
8484
class="bx--number__control-btn down-icon"
8585
type="button"
86+
[attr.disabled]="disabled ? true : null"
8687
aria-live="polite"
8788
aria-atomic="true"
8889
[attr.aria-label]="getDecrementLabel() | async"
@@ -93,6 +94,7 @@ export class NumberChange {
9394
<button
9495
class="bx--number__control-btn up-icon"
9596
type="button"
97+
[attr.disabled]="disabled ? true : null"
9698
aria-live="polite"
9799
aria-atomic="true"
98100
[attr.aria-label]="getIncrementLabel() | async"

0 commit comments

Comments
 (0)