input: improve numeric mode on iOS
This commit is contained in:
parent
ccd11ad569
commit
cd55407e40
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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