JedWatson / JedWatson/react-select

Keydown events not working on custom Control Component

Open
#5,589 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

I am trying to use my own editor(Tiptap editor) as the custom editor for the control component. Doing so pressing the space bar selects the first option, backspace key doesn't delete characters and pressing enter on an option doesn't select the option. Is there any solution for this?

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 reproducing the issue with a Tiptap editor used as react-select's custom Control component, focusing on Space, Backspace, and Enter key handling. Inspect the Control component's keyboard-event path and compare behavior with the standard control; done means all three keys work correctly without breaking option selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.