diff --git a/CHANGELOG.md b/CHANGELOG.md index 568a193b..e0829af2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/client/widgets/basics/input.js b/src/client/widgets/basics/input.js index 57186173..db9c5221 100644 --- a/src/client/widgets/basics/input.js +++ b/src/client/widgets/basics/input.js @@ -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')