input: improve numeric mode on iOS

This commit is contained in:
bordun 2021-05-08 19:04:27 +02:00
parent ccd11ad569
commit cd55407e40
2 changed files with 6 additions and 1 deletions

View file

@ -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')