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: Inconsistent mention list hide behavior #385

Open
PatrickNausha opened this issue May 14, 2024 · 1 comment
Open

Bug: Inconsistent mention list hide behavior #385

PatrickNausha opened this issue May 14, 2024 · 1 comment

Comments

@PatrickNausha
Copy link

Repro steps

Repro steps given a quill editor with quill-mention configured:

  1. Enter @ in the editor to reveal the mention list.
  2. Click blank space on the page.
  3. Observe: The mention list hides.
  4. Enter @ in the editor to reveal the mention list.
  5. Click some text in the page.
  6. Observe: The mention list hides.
  7. Enter @ in the editor to reveal the mention list.
  8. Click an image (must be img tag) in the page.

Expected: The mention list should hide after clicking anywhere outside the quill editor. Actual: The mention list remains visible after clicking the image.

I believe the same exists for button elements in addition to img elements.

Versions tested

I've repro'd with

and

  • Quill 1.3.7
  • quill-mention 4.1.0

in Google Chrome.

Demo

You can repro the problem in this fiddle which is a simplified version of the quill-mention.com home page source.

quill-mention-hide

@PatrickNausha
Copy link
Author

PatrickNausha commented May 14, 2024

The impact of this bug in my app is that some clicks dismiss the editor, but—depending on where you click—the editor may disappear while the mention list remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant