react-component / react-component/trigger

Trigger = "click" breaks mouse interaction with components in it.

Open
#159 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
391
Forks
245
PR merge metrics
No merged PRs in 30d

Description

In the example below, I have Popover that contains Select (from react-select). If Popover trigger is set to "click", then trying to select elements in the drop-down list as well as using its drop-down button closes the popover instead of allowing the interaction.

Using keyboard or trigger="hover" are two workarounds that I found that allow to select elements in a drop-down by clicking.

https://codesandbox.io/s/flamboyant-bhabha-3qh3c

Contributor guide

No contributing guide indexed for this repository

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

Reproduce the interaction in the linked CodeSandbox using a click-triggered Popover containing react-select. Start by tracing the click-trigger handling in this repository and determine why clicks inside the dropdown close the Popover; done means dropdown selection and its button work without closing it unexpectedly.

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.