Mention Dropdown not reopening #333
Unanswered
sharma-harshit59
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Below given is the code I'm trying to implement.
Here, if I type my desired name, the
source()
function calls therenderList()
and runs properly becausematches
is not empty.The problem arises that if I mistype (or, write a name that does not exist, i.e.,
searchTerm
does not match any name), thematches
list becomes empty causing therenderList()
to not able to show any list and thus closing the mention dropdown list. Now, if I delete the mistyped part, the mention dropdown should've reappeared, but it is reappearing only when I delete the whole searchTerm because it finds the mentionChar and then triggers the onOpen() method.Is there any way that to not close the mention dropdown in case any matches are not found. Given I have the requirement to not show any suggestions if typed wrong or no matches found.
Beta Was this translation helpful? Give feedback.
All reactions