salesforce / salesforce/design-system-react

Timepicker onBlur handler

Open
#2,836 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

stale time-picker
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.