BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

filterSuggestionItems doesn't work when typing Korean

Open lbybrilee opened this issue 1 year ago • 1 comments

Describe the bug Once the suggestion menu is triggered, when you start typing in Korean, the menu will close and will not filter. Same issue persists with other trigger characters as well.

For example, when I type, "/image" the image block suggestion is filtered. However when I type /이미지, the the suggestion menu closes.

To Reproduce Issue can be simply reproduced by adding dictionary: locales.ko to the basic useCreateBlockNote function. I've recreated the issue in the basic stackblitz by doing this.

Misc

  • Node version:20.11.1, npm: 10.2.4
  • Package manager: npm
  • Browser: Chrome

lbybrilee avatar Sep 12 '24 23:09 lbybrilee

Just to make sure - can you check that you're on BlockNote version 0.15.7? There were a few fixes to composing languages recently and I also can't seem to replicate the issue with typing /이미지.

matthewlipski avatar Sep 13 '24 13:09 matthewlipski

I am using version 0.18.0. Although Chinese can be used to search the suggestion menu, typing Chinese requires an input method to convert characters. Before the conversion, the input letters already cause the suggestion menu to close, making it impossible to retrieve the content I want.

I tried customizing my own suggestion menu using the suggestionMenuComponent, but the props do not include parameters to manually control the opening and closing of the menu. I would like such a parameter to be passed in so I can actively control the menu's expansion and closure. image image

Additionally, I noticed that the props do not seem to include the query parameter either. Sometimes I need this parameter to perform certain tasks.

nickGaooooooooooo avatar Nov 20 '24 10:11 nickGaooooooooooo