-
Notifications
You must be signed in to change notification settings - Fork 4.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
TinyMCE dialogs input fields not working with Materialize #5972
Comments
I can confirm the issue exists. It was working with the previous versions but updating to 1.0 breaks TinyMCE input fields on their popups. |
This sucks. i had to re create my views in order to work around this. Please fix it |
Possible solution would be to check the focused event's element's z-index, if it's lower than that of a modal element, cancel. _handleFocus(e) {
if (!this.el.contains(e.target)
&& this._nthModalOpened === Modal._modalsOpen
&& document.defaultView.getComputedStyle(e.target, null).zIndex < 1002) {
this.el.focus();
} |
Thank you for the quick response. Recompiling the JS isn't really an option for us unfortunately as we're using NPM. However, your code does work perfectly - I've managed to override that function using $.extend, so anyone using jQuery should be able to do the same:
I've updated the codepen. @Dogfalo I realise this isn't technically a Materialize issue, but would it be possible to include some sort of generic solution such as the one above into the next release? |
I confirm that the fix by @sigma-technology works great with Materialize and TinyMCE. I've been trying to use the method that was posted for JQuery-UI and bootstrap without luck. Thanks! |
@sigma-technology thankyou dude, you're a live saver.. |
It can also be resolved to setting
|
Hey!
I've an issue using Materialize and TinyMCE within a modal.
TinyMCE dialog input fields are not accessible.
I tried to stop events propagation but it doesn't work.
This code works with jQueryUI dialog but not with Materialize.
I think the dropdown component had a similar issue: #1683
Please take a look at this CodePen: https://codepen.io/anon/pen/rKWxwK
Thanks for assistance.
The text was updated successfully, but these errors were encountered: