Cannot set min
/max
constraints on input with datetime-local
type
#9281
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.
calcite-components
Issues specific to the @esri/calcite-components package.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
resolution: refine
For issues we support, but additional details are needed prior to dev work.
spike
Issues that need quick investigations for time estimations, prioritization, or a quick assessment.
Milestone
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 #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
The text was updated successfully, but these errors were encountered: