Open PhilMcLachlan opened 3 years ago
Hi, I've been investing it and the problem is focusLock
not letting you focus elements inside the second modal.
@chaance do we really need to use react-focus-lock
for focus management of modal? cuz we aren't using so many of its features. what do you think about writing a custom focus lock and use that instead? and users can install/use react-focus-lock
if they wanted more advanced features.
🐛 Bug report
Current Behavior
This bug occurs when using TinyMCE-react inside a Reach Dialog, and subsequently opening a TinyMCE-react dialog. This can be seen, when using the menu item Insert | Image. The second modal dialog that pops up does not allow you to interact with the textbox controls. However, the buttons work, and the dialog can be dismissed.
Expected behavior
The TinyMCE-react Image dialog modal should allow you to type data into the textboxes. Other TinyMCE-react modals have the same problem.
Reproducible example
https://codesandbox.io/s/infallible-voice-b8zid?file=/src/index.js
Your environment