-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialog takes focus, can we add notice about such default behavior in docs? #13020
Comments
@liesislukas You will find this information in https://material-ui.com/utils/modal/ (the page is linked in the dialog page). It's a default accessibility behavior all modals should have. |
How do you think we should handle the issue? |
Maybe a selector whitelist to allow a focus change to some elements would work @oliviertassinari ? |
@sashless Do you have a reproduction of the issue? It would help explore the different option to solve the problem. |
so i assume |
Thanks a lot brother..Was stuck in this thing for two days ..couldnt even have thought of this...I tried it and it worked like a charm |
This worked for me : https://dev.to/rexebin/fix-tinymce-react-not-usable-in-material-ui-dialog-68i |
Not sure where to post such info but when using material-ui Dialog and rendering tinymce inside it, material-ui dialog is getting focus by default which makes tinymce dialogs uneditable.
The solution is to add
disableEnforceFocus
to the dialog. Would like to mention such info somewhere on documentation but can't decide where and what sentence would be best to provide such notice. I believe people have the same issue with any other dialog rendered inside material-ui Dialog. It was a headache for some time, would love to have noticed on docs.I believe having some yellowish notice here https://material-ui.com/demos/dialogs/ would make sense.
The text was updated successfully, but these errors were encountered: