JedWatson / JedWatson/react-select

Home/end keys don't work in search box

Open
#5,759 8 comments 1 reaction 0 assignees View on GitHub

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

I would expect these to move the cursor to the start/end of the textbox just like in a native text area. They should be able to drag the highlight as well when shift is held like the arrow keys do

This behavior reproduces for me on Windows+Chrome on the React Select demo page: https://react-select.com/home

Apologies if this should have been filed as a feature request.

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 with the reproduction on the React Select demo page at https://react-select.com/home and inspect the search box's keyboard handling. Verify Home and End cursor movement, including Shift-held selection, against the native textarea behavior. Done means both keys move the cursor correctly and preserve selection behavior on the demo.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.