[Bug]: "Firing" Mention dropdown without triggering character on focus #5112
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
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 ofsuggestion
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) (theonUpdate
or theonKeyDown
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?
Are you sponsoring us?
The text was updated successfully, but these errors were encountered: