editor icon indicating copy to clipboard operation
editor copied to clipboard

[BUG] image not clickable with stopPropagation on ancestor node in DOM

Open cmattick opened this issue 1 year ago • 1 comments

Reproduction I set up a code sandbox to demonstrate the problem: https://codesandbox.io/p/sandbox/mdx-editor-base-forked-dld75x

To Reproduce

  1. Open Code Sandbox
  2. 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.

cmattick avatar Feb 09 '24 10:02 cmattick

Same here...

rafal-akiro avatar Mar 08 '24 10:03 rafal-akiro