JedWatson / JedWatson/react-select
Creatable Select doesn't consume "Enter" keyboard events if the item is invalid
Open
Nobody has claimed this yet.
issue/bug-unconfirmed
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
When used on a form containing buttons, the buttons receive the keyboard event rather than it being consumed by the select field - this can lead to inappropriate form submission
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 reproducing the issue in a Creatable Select placed in a form with buttons, using Enter while the item is invalid. Trace the Select's keyboard-event handling and verify that Enter is consumed by the select rather than reaching the form button and causing submission.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100