fix(ui): hashlist render for block editor (#21763)

This commit is contained in:
Chirag Madlani 2025-06-13 21:54:03 +05:30 committed by GitHub
parent 059289a83b
commit 4a30d8bd3c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,6 +60,11 @@ export const hashtagSuggestion = () => ({
return {
onStart: (props: SuggestionProps) => {
// Check if editor is in preview mode
if (props.editor.isEditable === false) {
return;
}
component = new ReactRenderer(HashList, {
props,
editor: props.editor,
@ -74,7 +79,7 @@ export const hashtagSuggestion = () => ({
props.clientRect as Props['getReferenceClientRect'],
appendTo: () => document.body,
content: component.element,
showOnCreate: false,
showOnCreate: true,
interactive: true,
trigger: 'manual',
placement: 'bottom-start',