[Checkbox] You can click through an overlay to check a checkbox
See original GitHub issuePaper 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:
- Created 3 years ago
- Comments:32 (15 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! Thread seems quiet and I’d love to snag this issue - will tackle if that’s cool 😊
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.