input: improve numeric mode on iOS
This commit is contained in:
parent
ccd11ad569
commit
cd55407e40
2 changed files with 6 additions and 1 deletions
|
|
@ -60,7 +60,11 @@ class Input extends Canvas {
|
|||
this.blur(true)
|
||||
})
|
||||
|
||||
if (this.getProp('numeric')) this.input.type = 'number'
|
||||
if (this.getProp('numeric')) {
|
||||
this.input.type = 'number'
|
||||
this.input.pattern = '[0-9\.]*'
|
||||
this.input.inputMode = 'decimal'
|
||||
}
|
||||
|
||||
var asYouType = this.getProp('asYouType')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue