[input-number] change event not firing when clearing the input in some locale that uses comma #11324
Open
2 of 6 tasks
Labels
0 - new
New issues that need assignment.
ArcGIS Online
Issues logged by ArcGIS Online team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Actual Behavior
When the input-number component is in a locale that uses comma instead of period for decimals, the
calciteInputNumberChange
event is not firing when the user clear the input.Expected Behavior
the
calciteInputNumberChange
event should fire correctly when clearing input-number in a locale likede
that uses comma.Reproduction Sample
https://codepen.io/rpanichakit/pen/gbYKEgO?editors=1001
Reproduction Steps
lang
from "de" to "en"Reproduction Version
3.0.0-next.100
Relevant Info
I think this might be related to this line https://github.com/Esri/calcite-design-system/blob/dev/packages/calcite-components/src/components/input-number/input-number.tsx#L874 that then ends up resulting in a NaN here https://github.com/Esri/calcite-design-system/blob/dev/packages/calcite-components/src/utils/number.ts#L105
Regression?
No response
Priority impact
impact - p3 - not time sensitive
Impact
Bug found when BYS was testing setting extent coordinates in the Home app https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/55962
Calcite package
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: