Skip to content
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

Image properties - Input fields are not clickable ( react + material ui ) #879

Open
skaskevire opened this issue Aug 18, 2022 · 2 comments

Comments

@skaskevire
Copy link

skaskevire commented Aug 18, 2022

Jodit Version: 3.18.4

Browser: Chrome
OS: Windows/Mac
Is React App: True

I applied jodit editor into react + material ui setup into modal window and see that inputs inside image properties are not focusable and not clickable. Everything except this works correctly.
My setup was the following:
Dialog>
//jodit editor placed here
<textarea id="editor" name="editor" />
/Dialog>

2022-08-18 16 37 52 localhost bdfdf3f4a771

The same issue i see with Link popup ( all fields there are not clickable ). I noticed that on version 3.4.x it works correctly, but Image properties has similar issue.

Is this known defect, did someone faced similar behavior before?

Thank you

@xdan
Copy link
Owner

xdan commented Aug 21, 2022

You should check with the browser inspector what exactly is preventing focus on the elements. Perhaps this is some kind of your overlay

@skaskevire
Copy link
Author

skaskevire commented Aug 27, 2022

Thank you for your answer, after some research i found out that this is mui Dialog functionality prevent focus from leaving the modal while open ( link editor and image editor are separate modals ) and there is a property to disable this behavior:
image
( screenshot was taken from https://mui.com/material-ui/api/modal/#props ).

My setup was the following:

Dialog>
<textarea id="editor" name="editor" />
/Dialog>

To summarize i would like to say that this is not an issue with Jodit editor, but probably it will be a good idea to update documentation of image-editor and link-editor plugins and other plugins which are opening in new modals to warn users about such potential behavior

xdan added a commit that referenced this issue Aug 30, 2022
Image properties - Input fields are not clickable ( react + material ui ) #879
Issue: #879
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants