diff --git a/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/hashtag/hashtagSuggestion.ts b/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/hashtag/hashtagSuggestion.ts index d568413dd87..c96e44aa5d4 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/hashtag/hashtagSuggestion.ts +++ b/openmetadata-ui/src/main/resources/ui/src/components/BlockEditor/Extensions/hashtag/hashtagSuggestion.ts @@ -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',