editor
editor copied to clipboard
[BUG] image not clickable with stopPropagation on ancestor node in DOM
Reproduction I set up a code sandbox to demonstrate the problem: https://codesandbox.io/p/sandbox/mdx-editor-base-forked-dld75x
To Reproduce
- Open Code Sandbox
- Click on image
Expected behavior The resize box should appear. Instead it doesn't (due to stopPropagation on the parent div node). This is a real problem for having any dialog since one wants to prevent the click event to propagate outside the dialog.
I found an issue at lexical matching the problem (https://github.com/facebook/lexical/issues/3657) and also set up a new one (https://github.com/facebook/lexical/issues/5599). But I am not sure if together with mdxeditor the issue can or should also be solved here.
Same here...