JedWatson / JedWatson/react-select
[Bug] SingleValue component does not run onClick in mobile view
Nobody has claimed this yet.
- 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:
- Open devtools and switch to mobile view
- 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
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 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