You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v4.x
v5.x
v6.x
Current Behavior
Changing the value (by user input) of an input of type number throws this exception:
DOMException: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.
at h.valueChanged (https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/p-db2cac9b.entry.js:4:1924)
at https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/p-70d27bbc.js:4:11115
at Array.map (<anonymous>)
at https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/p-70d27bbc.js:4:11098
at h.set [as value] (https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/p-70d27bbc.js:4:11166)
at HTMLInputElement.onInput (https://cdn.jsdelivr.net/npm/@ionic/core/dist/ionic/p-db2cac9b.entry.js:4:841)
Because of that, I can't handle form values anymore and they can't be submitted. I use Angular but I think the issue is not related to UI framework since I see it on the UI components page demo.
Expected Behavior
An exception should not be thrown and the value change should be handled.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Prerequisites
Ionic Framework Version
Current Behavior
Changing the value (by user input) of an input of type
number
throws this exception:Because of that, I can't handle form values anymore and they can't be submitted. I use Angular but I think the issue is not related to UI framework since I see it on the UI components page demo.
Expected Behavior
An exception should not be thrown and the value change should be handled.
Steps to Reproduce
number
(the official input demo has one)Code Reproduction URL
https://ionicframework.com/docs/api/input
Ionic Info
Ionic:
Ionic CLI : 6.18.1 (/usr/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.7
@angular-devkit/build-angular : 13.2.3
@angular-devkit/schematics : 13.2.3
@angular/cli : 13.2.3
@ionic/angular-toolkit : 6.0.0
Capacitor:
Capacitor CLI : 3.4.1
@capacitor/android : not installed
@capacitor/core : 3.4.1
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.5.0
System:
NodeJS : v16.14.0 (/usr/bin/node)
npm : 6.14.16
OS : Linux 5.13
Additional Information
No response
The text was updated successfully, but these errors were encountered: