salesforce / salesforce/design-system-react
Timepicker onBlur handler
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 982
- Forks
- 440
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 4
Description
The TimePicker has no way to register an onBlur handler on the input field. When we rely on "onDateChange" the UI re-renders when ever the user is typing a single letter into the input field. So "onBlur" would be the better event to take over the value.
Is there some way to get this done without a change in the component.
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 by locating the TimePicker component and its input event handling, then inspect how onDateChange is exposed and whether other input handlers can be passed through. Done means the input supports an onBlur handler that lets consumers take over the value without re-rendering on each typed character; verify the behavior with the component's existing tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100