Skip to content

Calcite numeric input deleting decimal point #7039

@nid13240

Description

@nid13240

Actual Behavior

When I am editing a decimal value on the calcite input component, the decimal point itself gets deleted when I delete the number in the tenths position. For example, if I have 1.5 and want to change it to 1.8, on trying to delete 5, it would also remove the "." and I would end up typing 18.

Expected Behavior

I expect the decimal position to stay in the input box like it does in the native input element.

Reproduction Sample

https://codepen.io/geospatialem/pen/poxYOdO

Reproduction Steps

Using the codepen above, try to use backspace on the three different input boxes and observe the difference in behavior between calcite-input and native input.

Reproduction Version

1.4.0

Relevant Info

No response

Regression?

No response

Priority impact

p3 - want for upcoming milestone

Impact

No response

Esri team

ArcGIS Map Viewer

Metadata

Metadata

Assignees

Labels

4 - verifiedIssues that have been tested, confirmed as mitigated, and are ready to close.ArcGIS Map ViewerIssues logged by ArcGIS Map Viewer team members.bugBug reports for broken functionality. Issues should include a reproduction of the bug.estimate - 5A few days of work, definitely requires updates to tests.p - highIssue should be addressed in the current milestone, impacts component or core functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions