Esri / calcite-design-system

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

Support "Infinity" for calcite-input component #8032

Closed itsminj closed 4 months ago

itsminj commented 11 months ago

Check existing issues

Description

Can there be support added for parsing Infinity for the max value of calcite-input and -Infinity for the -min value?

In the codepen below, it shows an error in the console if it tries to parse Infinity https://codepen.io/mjkim12/pen/WNPeNQj

I see another issue, but it requests "Infinity" for calcite-input-number: https://github.com/Esri/calcite-design-system/issues/7866

Acceptance Criteria

Allow "infinity" and "-Infinity" to be parsed for its max and min values, respectively

Relevant Info

No response

Which Component

calcite-input

Example Use Case

https://codepen.io/mjkim12/pen/WNPeNQj

Priority impact

p4 - not time sensitive

Calcite package

Esri team

ArcGIS Web Analysis

benelan commented 11 months ago

What is the use case for setting min to -Infinity or max to Infinity? Isn't it equivalent to not setting min or max?

jcfranco commented 4 months ago

@itsminj We'll proceed to close this due to inactivity. Please feel free to reopen if there's additional information regarding the use case.