Skip to content

Commit e9b3ef4

Browse files
committed
fix: Update value after change event is called
Signed-off-by: Akshat Patel <akshat@live.ca>
1 parent fe84141 commit e9b3ef4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/number-input/number.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class NumberChange {
6262
<input
6363
type="number"
6464
[id]="id"
65-
[attr.value]="value"
65+
[value]="value"
6666
[attr.min]="min"
6767
[attr.max]="max"
6868
[attr.step]="step"
@@ -71,7 +71,7 @@ export class NumberChange {
7171
[attr.aria-label]="ariaLabel"
7272
[attr.data-invalid]="invalid ? invalid : null"
7373
[placeholder]="placeholder"
74-
(input)="onNumberInputChange($event)"/>
74+
(change)="onNumberInputChange($event)"/>
7575
<svg
7676
*ngIf="!skeleton && !warn && invalid"
7777
cdsIcon="warning--filled"

0 commit comments

Comments
 (0)