question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:32 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
mare1601commented, Jun 27, 2021

Hi! Thread seems quiet and I’d love to snag this issue - will tackle if that’s cool 😊

2reactions
oliviertassinaricommented, May 3, 2020

I have no idea how to explain this behavior. Adding a z-index: 1 on the Popper solves the issue, however, it’s not something we can apply. I would propose we ignore the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Checkbox] You can click through an overlay to check ... - GitHub
Paper component (elevation=1) accepts clicks from UI elements underneath. I have the following code: // some stuff here Any elements ...
Read more >
Show overlay menu by checking a checkbox - Stack Overflow
If you want the hamburger to toggle the checkbox, use <label> : ... You can hide the checkbox, so only the <label> will...
Read more >
The "Checkbox Hack" (and things you can do with it)
Using a hidden checkbox, you can re-create a lot of functionality on website that rely on clicks and toggled states.
Read more >
How To Display Text when a Checkbox is Checked - W3Schools
Check whether a checkbox is checked with JavaScript. Display some text when the checkbox is checked: Checkbox: Checkbox is CHECKED!
Read more >
How to create clickable checkboxes? - InVision Support
I can click on a checkbox but then have to uncheck it in order to ... I'm not sure how to be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found