mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 03:59:12 +00:00
fix(ui): hashlist render for block editor (#21763)
This commit is contained in:
parent
059289a83b
commit
4a30d8bd3c
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user