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]: "Firing" Mention dropdown without triggering character on focus #5112

Open
1 of 2 tasks
rlndrcz opened this issue May 3, 2024 · 0 comments
Open
1 of 2 tasks
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug

Comments

@rlndrcz
Copy link

rlndrcz commented May 3, 2024

Which packages did you experience the bug in?

extension-mention

What Tiptap version are you using?

2.3.0

What’s the bug you are facing?

Not sure if it is a bug or not, or maybe I was expecting something else and this would be a new feature that cannot be hacked currently:

I am using the Mention extension, it works perfectly but I want it to show the suggestion dropdown without any starting character (like @) and also initially (so when I am focusing on an empty node).

I thought that setting the char property of suggestion to an empty string helps, but it is only partially a solution. Now, when I start to type, the dropdown appears after the first character, but when focusing on an empty node (=new line), nothing is shown (like the unfiltered list) (the onUpdate or the onKeyDown methods are not called, of course).

Is this an issue, or would this be a new feature?
Is there any "hack" to achieve this behaviour?

What browser are you using?

Chrome

Code example

No response

What did you expect to happen?

Show the suggestion dropdown without any starting character and also initially on focus.

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖
@rlndrcz rlndrcz added Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Open Source The issue or pull reuqest is related to the open source packages of Tiptap. Type: Bug The issue or pullrequest is related to a bug
Projects
Status: Triage open
Development

No branches or pull requests

1 participant