Datepicker: Cannot be cleared (due to internal state conditional)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript, react
- Domain
- frontend
Research direction
Start by reproducing the three clearing attempts from the linked gist and then trace the datepicker's internal state handling. Done means at least one of the reported ways clears the input without recreating it; the issue does not name a source file or test to run.
Written by the indexing model from the issue text.
Description
The following example shows three different attempts to clear an input a datepicker. All failed. I have a workaround but it seems to me that it should be coded such that at least one of them works to clear input.
https://gist.github.com/prescod/724c19066b8aa206a6d210c15b077596
My workaround is to change the key and therefore clear the input by re-creating it.
- Dominant language
- JavaScript
- Stars
- 982
- Forks
- 440
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
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.
More from salesforce/design-system-react
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
salesforce/design-system-react#3184 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
salesforce/design-system-react#3183 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
salesforce/design-system-react#3182 · 2 comments ·
-
CRA vs VITE Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
salesforce/design-system-react#3178 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
salesforce/design-system-react#3177 · 1 comment ·
All issues in salesforce/design-system-react
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100