It is impossible to set number with comma into input

By design Issue #6367416

Details

Created
Jan 29, 2016
Privacy
This issue is public.
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

  1. Open the sample: https://jsfiddle.net/v4wywyfr/
  2. Enter to input “15,6”
  3. After value change an input value is “”

Expected Results:

I expect that after number value with comma (e.g. “15,6”) is entered to input I will have correct value in it

Actual Results:

Dev Channel specific:

No

Attachments

0 attachments

    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!

    • Hello,

      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.

      Best Wishes,

      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in