mui / mui/material-ui

[Checkbox] You can click through an overlay to check a checkbox

Open
#20,856 34 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

has workaround scope: checkbox type: bug waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Paper component (elevation=1) accepts clicks from UI elements underneath. I have the following code:

<Popper>
  <Paper>
     <ClickAwayListener>
         // some stuff here
     </ClickAwayListener>
  </Paper>
</Popper>

Any elements (buttons, checkboxes, etc) that sit below the popper / paper component above, accept click events. The component should block any click events from flowing to components underneath it.

Tech Version
Material-UI v4.9.9
React v16.8.0
Browser Chrome
TypeScript
etc.

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 by reproducing the behavior with the Popper, Paper, and ClickAwayListener structure described in the issue using Material-UI v4.9.9, React 16.8.0, and Chrome. Trace how clicks on elements beneath the overlay are handled; done means buttons and checkboxes underneath no longer receive clicks through the Paper overlay.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.