Steps to reproduce
- Open the sample: https://jsfiddle.net/v4wywyfr/
- Enter to input “15,6”
- After value change an input value is “”
I expect that after number value with comma (e.g. “15,6”) is entered to input I will have correct value in it
Dev Channel specific:
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Amit J.”
Changed Assigned To from “Amit J.” to “IE S.”
Changed Status to “By design”
Changed Assigned To from “IE S.” to “Grisha L.”
Changed Status from “By design”
Changed Status to “Confirmed”
Changed Assigned To from “Grisha L.” to “IE S.”
Changed Status from “Confirmed” to “By design”
Same problem here…
I try use this code:
var val = parseFloat($(this).val().replace(‘,’,’.’));
But the "$(this).val()" return always “”
On IE, chrome and firefox works fine - just in microsoft edge occurs this error!
Change the input type for text is not a acceptable solution. For now I will continue recommend other browsers for my clients…
Please, fix this!
Thank you for providing this information about the issue. An input element with attribute “type=number” can only accept dots and no commas. This convention follows localization system settings. The work around this issue is to use input element with “type=text” attribute value. This is common behavior across all major browsers.
The MS Edge Team
James M. Major browsers work fine you idiot, fix the issue you lazy bastard.
My app doesn’t work on edge “by design” too. It’s an awful solution to use type="text", my bindings fail, hard. Now, because one browser, I’ll have to deal with parse? Safari, Chrome, Firefox, Opera, UC Browser and others get it. Edge don’t. I’ve checked language, regional settings, and that doesn’t make any difference.