Syntax error entering spaces into number input #11710
Labels
0 - new
New issues that need assignment.
ArcGIS Field Apps
Issues logged by ArcGIS Field Apps team members.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Actual Behavior
Given a
<calcite-input-number>
element, type in a number, then hit the space key with increasing frequency (timing appears to be a factor) until a period appears after the number. At this point anUncaught SyntaxError
message should appear in the console. Also the number of spaces entered trails the period until the input is next focused.Screen.Recording.2025-03-06.at.5.06.22.PM.mov
Expected Behavior
Space keys are ignored and do not impact the value of the input.
Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/input-number/
Reproduction Steps
1
).SyntaxError
appears in the console.Alternative reproduction steps
Programmatically setting a
<calcite-input-number>
element'svalue
property to some number with a trailing space also triggers the exception.Reproduction Version
3.0.3
Relevant Info
The
.
period is likely due to a platform keyboard shortcut where two spaces following a character translate to the end of a sentence.Stack trace
Regression?
No response
Priority impact
impact - p2 - want for an upcoming milestone
Impact
It's an unlikely value for a user to enter, but more likely by QA for testing validation handling.
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: