salesforce / salesforce/design-system-react
Datepicker: Allow controlled clearing of input
Open
Nobody has claimed this yet.
date-picker
stale
- Dominant language
- JavaScript
- Stars
- 982
- Forks
- 440
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
Currently, on initial load the input is uncontrolled and creates a clear empty string value. There currently is not a way to reset to an empty string once the value is set.
One proposal is to allow a controlled component reset to input empty string by using value={null}.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Datepicker component and its input value-handling path; inspect how the initial uncontrolled value and later controlled updates are handled. Done means a controlled Datepicker can be reset to an empty string with value={null}, with coverage for the reset behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100