JedWatson / JedWatson/react-select

[Bug] SingleValue component does not run onClick in mobile view

Open
#4,000 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue/bug-confirmed issue/bug-unconfirmed issue/reviewed
Dominant language
TypeScript
Stars
28k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

https://codesandbox.io/embed/react-codesandboxer-example-bfv06?codemirror=1

I have put a simple onClick on a custom SingleValue component. The onClick is fired in normal browser view, as seen by console logs.

Steps to reproduce:

  1. Open devtools and switch to mobile view
  2. Try clicking on the single value component now. No logs in console.

I am guessing the event is obscured by some other top level event.

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 and the SingleValue component, reproducing the missing click in browser mobile emulation and comparing it with normal browser view. Trace the mobile event handling around the component and inspect the existing issue comments for context. Done means a custom SingleValue onClick fires in both views, with a regression test if the repository provides a suitable test entry point.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.