[calcite-input-date-picker]: should display placeholder text when the value is reset to null #6378
Labels
4 - verified
Issues that have been released and confirmed resolved.
bug
Bug reports for broken functionality. Issues should include a reproduction of the bug.
Calcite (dev)
Issues logged by Calcite developers.
estimate - 3
A day or two of work, likely requires updates to tests.
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
Actual Behavior
I have two simple simple components, a
calcite-input-date-picker
and acalcite-button
:I can use the date picker to select a date without any issue:
The selected date should be reset when I click on the reset button, and I can see selected date become unselected in the calendar component after clicking the button:
But the input still shows previously selected date even after we reset the selected date:
Expected Behavior
the input should show placeholder text (e.g. YYYY/MM/DD) once the selected date is reset to undefined, so that the user knows that they have successfully reset the selected date.
Reproduction Sample
https://codepen.io/vannizhang/pen/ZEjMLaL?editors=1010
Reproduction Steps
open the codepen sample,
select a date using the date-picker component and you should see the selected date in input-date-picker
click on reset selected date button
you still see the previously selected date in the input-date-picker, which is incorrect, should see the placeholder text
Reproduction Version
1.0.3
Relevant Info
No response
Regression?
No response
Impact
The Living Atlas Curation App (a internal tool to curate all Living Atlas contents) uses the calcite-input-date-picker in a Modal to let the curator to select a auto removal date for any Living Atlas content, we also gives them a button to reset the previously selected auto removal date, when that button is clicked, we want them to see that change in the calcite-input-date-picker:
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: