Input-date-picker displays incorrect value if out-of-range #9282
Labels
2 - in development
Issues that are actively being worked on.
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.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p2 - want for an upcoming milestone
User set priority impact status of p2 - want for an upcoming milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
p2 - want for current milestone
User set priority status of p2 - want for current milestone
Milestone
Check existing issues
Actual Behavior
An input-date-picker pre-populated with an out-of-range value displays the closest in-range value instead of the actual value. The
value
prop contains the out-of-range value. The out-of-range state is never reflected in the input'svalidity
and does not block form submissions.Expected Behavior
The input displays the out-of-range value with a
rangeOverflow
orrangeUnderflow
validity. Opening the picker should default the calendar selection to the closest in-range value. This should match how native date-pickers handle the same scenario.Reproduction Sample
https://codepen.io/nwhittaker-esri/pen/oNRvGqm
Reproduction Steps
min
instead of itsvalue
attributeReproduction Version
2.8.0
Relevant Info
No response
Regression?
No response
Priority impact
p2 - want for current milestone
Impact
Field Maps allows users to edit meta data about form controls. As the meta data changes, the validity of a value can change. In those cases, we want the user to be able to identify the invalid data and correct it. For a date field that has become out-of-range, it can be confusing to see it marked as invalid but populated with an in-range value.
Calcite package
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: