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

@ -15,6 +15,7 @@
- matrix: removed ambiguous `start` property
- matrix: advanced syntax blocks can be passed to children without being resolved at the matrix\' scope by adding an underscore before the opening bracket
- text: add `soft` mode for the `wrap` property
- input: improve `numeric` mode on iOS
## 1.9.6

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