JedWatson / JedWatson/react-select
Clicking on the dropdown field does not fire onClick events added to window when on mobile
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Description of the issue:
When on mobile (either a real device or simulated with Chrome Dev Tools) click events aren't triggered when clicking on the dropdown input.
Steps to reproduce the issue:
- Go to: https://react-select.com/home (because any dropdown from react-select will work for that)
- Open DevTools, go to Console and type in
window.addEventListener('click', () => console.log('clicked')); - Click on the icon found in the top left corner to simulate a mobile device
- Click on a dropdown - no log will be visible in the console
Clicking someplace else or disabling mobile device simulation will produce logs after clicking on the dropdown.
Expected result:
When on mobile, a click on the dropdown input should produce a log in the console. The log is just an example, of course.
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
Reproduce the issue from the react-select.com/home entry point using Chrome DevTools mobile emulation and the window click listener shown in the report. Trace the dropdown input's event handling and verify that clicking it produces the expected console log without changing behavior elsewhere.
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
- 38/100