You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value prop can't be set to null (as in the documentation) in DateRangePicker because TypeScript needs a DateValue type of value. Once the value prop has received a value then the value can't be removed completely from the date field to show just a placeholder again.
🤔 Expected Behavior
If the value prop in the DateRangePicker receives a null or undefined value then the previous selected date should be removed from the date field and should display a placeholder again instead of the previous selected date.
😯 Current Behavior
If the value prop in the DateRangePicker receives a null or undefined value then the previous selected date stays there in the date field.
🔦 Context
I am trying to reset the DateRangePicker's value to nothing to show the placeholder again after the previously selected date has been removed from the filtering list, so it makes less confusing for the users.
💻 Code Sample
🌍 Your Environment
Software
Version(s)
react-spectrum
3.17.0
Browser
Google Chrome
Operating System
MacOS
🧢 Your Company/Team
AEM - Admin UI, Odin project
msdrigg, dj-neza, jonsmithers, B0und, boyur and 9 more