Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
285 stars 76 forks source link

[calcite-input-number]: calcite-input-number allowing character "e" #9155

Closed jasdelreyes closed 5 months ago

jasdelreyes commented 5 months ago

Check existing issues

Actual Behavior

calcite-input-number allows character of "e".

Expected Behavior

calcite-input-number should only accept number inputs.

Reproduction Sample

https://codepen.io/jasdelreyes/pen/KKYGLPp?editors=100

Reproduction Steps

Type any character into the field. Notice that numbers are allowed (expected) and the character "e" (not expected).

Reproduction Version

~2.7.1

Relevant Info

No response

Regression?

No response

Priority impact

p1 - need for current milestone

Impact

This impacts a new workflow in the Map Viewer slated for R02.

Calcite package

Esri team

ArcGIS Online

geospatialem commented 5 months ago

@jasdelreyes the integer property can be used to disable exponential notation, where:

When true, restricts the component to integer numbers only and disables exponential notation.

For instance: https://codepen.io/geospatialem/pen/JjVVzKW

image

Closing out the above request as not planned.