TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
5.91k stars 386 forks source link

The suggestion popover doesn't disappear #778

Closed trinhle96 closed 1 month ago

trinhle96 commented 1 month ago

Describe the bug I implemented a mentions menu that is triggered by the "@" character in my React project, and it's working great. However, I'm facing an issue in my Next.js project: when I type something that starts with "@", but isn't a mention item, the suggestion popover displaying "No items found" doesn't disappear. Screenshot 2024-05-28 143717

To Reproduce stackblitz: https://stackblitz.com/edit/stackblitz-starters-qy4jp9?file=README.md

Misc

kedarvyas084 commented 1 month ago

Hello @trinhle96, In your stackblitz, I was able to get suggestions would it be your system's problem?

image

trinhle96 commented 1 month ago

Hi @kedarvyas084 , Please type until no items are found. Then, add spaces or anything, and the popover won't disappear.

trinhle96 commented 1 month ago

Hi @YousefED, I tried your fix, and it works great. Thank you so much for your support.