Skip to content

Commit 6e2a9c9

Browse files
committed
fix(alert): set input value
1 parent 12c78bc commit 6e2a9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/alert/alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ export class Alert implements OverlayInterface {
167167
rbButton.handler(rbButton);
168168
}
169169
}
170-
171170
private cbClick(inputIndex: number) {
172171
this.inputs = this.inputs.map((input, index) => {
173172
if (inputIndex === index) {
@@ -285,6 +284,7 @@ export class Alert implements OverlayInterface {
285284
type={i.type}
286285
min={i.min}
287286
max={i.max}
287+
onInput={e => i.value = (e.target as any).value}
288288
id={i.id}
289289
disabled={i.disabled}
290290
tabIndex={0}

0 commit comments

Comments
 (0)