JedWatson / JedWatson/react-select

Custom control for select not working properly on mobile

Open
#5,505 1 comment 0 reactions 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

Hi!

I've tried to implement custom control which I found in docs.
This one:

https://codesandbox.io/s/5yee5t?module=/example.tsx&file=/example.tsx

This example works properly only on desktop. If I open this codesandbox link on mobile, click will only trigger focus on select, an emoji won't be changed. However on desktop and in codesandbox responsive mode emoji is changed on click.

react-select: 5.7.0
it reproduces both in Safari and Chrome

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 linked CodeSandbox example.tsx and reproduce the custom control behavior on mobile Safari and Chrome, then compare it with desktop and responsive mode. Done means clicking the select changes the emoji on mobile as it does in the working environments.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.