-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Labels
enhancementNew feature or requestNew feature or requestjiraThis task is referenced in a story of JiraThis task is referenced in a story of Jiranon-closableThis task is exempt from becoming stale or automatically closed.This task is exempt from becoming stale or automatically closed.
Description
As @fredofm explains in the issue #1660, when you type:
"1," -> the component transforms this value into "1". It can make sense because as you didn't type the fractional part it will return the integer one.
"1." -> the component transforms this value into ""
. It can make sense but I would expect the same behaviour as "1,".
As I explained in the comments of that issue, it looks like it is a bug from the HTML <input type=" number" />
, which understands the comma as a decimal number when there are no decimals at all (1,
, 12,
, 4483,
, ...) but doesn't apply the same logic on the dotted ones.
So, the feature here is to make the component behave consistently for both scenarios since they are variants of the same use case.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestjiraThis task is referenced in a story of JiraThis task is referenced in a story of Jiranon-closableThis task is exempt from becoming stale or automatically closed.This task is exempt from becoming stale or automatically closed.