Given a <calcite-input type="datetime-local" /> input, the min/max attributes are unable to be set programmatically due to TypeScript errors. This is because the min/max attributes are typed as numbers.
Expected Behavior
The min/max attributes also accepts strings for constraining a datetime-local value.
Attempt to set the min and max properties to ISO datetime strings
Reproduction Version
2.8.0
Relevant Info
No response
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
The team is looking to use the datetime-local type until https://github.com/Esri/calcite-design-system/issues/7074 is implemented. In the meantime, it would be beneficial to be able to apply min/max constraints to datetime values.
Check existing issues
Actual Behavior
Given a
<calcite-input type="datetime-local" />
input, themin
/max
attributes are unable to be set programmatically due to TypeScript errors. This is because themin
/max
attributes are typed as numbers.Expected Behavior
The
min
/max
attributes also accepts strings for constraining adatetime-local
value.Reproduction Sample
https://developers.arcgis.com/calcite-design-system/components/input/
Reproduction Steps
datetime-local
Reproduction Version
2.8.0
Relevant Info
No response
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
The team is looking to use the
datetime-local
type until https://github.com/Esri/calcite-design-system/issues/7074 is implemented. In the meantime, it would be beneficial to be able to applymin
/max
constraints to datetime values.Calcite package
Esri team
ArcGIS Field Apps