admin管理员组文章数量:1125933
When the Material UI Backdrop
component is in use, the elements in the website are still visible and accessible, which can be fairly easy to see in the official demo, or by using this CodeSandbox
:
I went through certain questions in plain JS
, such as tabindex -1 not working for child elements, and many suggested using visibility: hidden
. However, I would like to know if there are ways to prevent other components from accessing, but still being visible.
When the Material UI Backdrop
component is in use, the elements in the website are still visible and accessible, which can be fairly easy to see in the official demo, or by using this CodeSandbox
:
I went through certain questions in plain JS
, such as tabindex -1 not working for child elements, and many suggested using visibility: hidden
. However, I would like to know if there are ways to prevent other components from accessing, but still being visible.
1 Answer
Reset to default 0You can try using pointer-events: none;
style.
本文标签:
版权声明:本文标题:javascript - How to make other components inaccessible when React Material UI Backdrop is opened? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736672308a1946986.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
Microsoft Edge
right now. – hokwanhung Commented 2 days ago