mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(alert): set input value
This commit is contained in:
@ -167,7 +167,6 @@ export class Alert implements OverlayInterface {
|
|||||||
rbButton.handler(rbButton);
|
rbButton.handler(rbButton);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private cbClick(inputIndex: number) {
|
private cbClick(inputIndex: number) {
|
||||||
this.inputs = this.inputs.map((input, index) => {
|
this.inputs = this.inputs.map((input, index) => {
|
||||||
if (inputIndex === index) {
|
if (inputIndex === index) {
|
||||||
@ -285,6 +284,7 @@ export class Alert implements OverlayInterface {
|
|||||||
type={i.type}
|
type={i.type}
|
||||||
min={i.min}
|
min={i.min}
|
||||||
max={i.max}
|
max={i.max}
|
||||||
|
onInput={e => i.value = (e.target as any).value}
|
||||||
id={i.id}
|
id={i.id}
|
||||||
disabled={i.disabled}
|
disabled={i.disabled}
|
||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
|
Reference in New Issue
Block a user