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

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

Open
cmattick opened this issue Feb 9, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@cmattick
Copy link

cmattick commented Feb 9, 2024

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 (facebook/lexical#3657) and also set up a new one (facebook/lexical#5599). But I am not sure if together with mdxeditor the issue can or should also be solved here.

@cmattick cmattick added the bug Something isn't working label Feb 9, 2024
@rafal-akiro

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants