[Input Date Picker]/[Input Time Picker] - Values should revert when an invalid date/time is entered. #10692
Closed
2 of 5 tasks
Labels
0 - new
New issues that need assignment.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript 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 - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
needs triage
Planning workflow - pending design/dev review.
Check existing issues
Similar Issues
#8595 -
calciteInputDatePickerChange
only fires on "valid date change" - there is no way to detect field entr#10169 - Programmatically clearing Input Date Picker value when user input invalid does not work
Actual Behavior
When a user enters an invalid date or time into the
input-date-picker
/input-time-picker
and pressesENTER
the value is not cleared. When the component loses focus, thecalciteInputDatePickerChange
event if fired with an empty string.Expected Behavior
Invalid dates or time should be cleared (or revert to previous value) when
ENTER
is pressed.When the component loses focus with nonsense text, the component should NOT throw a
calciteInputDatePickerChange
event with an empty string.Reproduction Sample
https://codepen.io/richiecarmichael/pen/rNXZpyy?editors=1000
Reproduction Steps
Reproduction Version
2.13.2
Relevant Info
No response
Regression?
No
Priority impact
impact - p3 - not time sensitive
Impact
Impacts
Directions
widget/component in JSSDK 4.32.Calcite package
Esri team
ArcGIS Maps SDK for JavaScript
// @bsvensson @NoashX
The text was updated successfully, but these errors were encountered: