mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-09 15:32:25 +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 {
|
return {
|
||||||
onStart: (props: SuggestionProps) => {
|
onStart: (props: SuggestionProps) => {
|
||||||
|
// Check if editor is in preview mode
|
||||||
|
if (props.editor.isEditable === false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
component = new ReactRenderer(HashList, {
|
component = new ReactRenderer(HashList, {
|
||||||
props,
|
props,
|
||||||
editor: props.editor,
|
editor: props.editor,
|
||||||
@ -74,7 +79,7 @@ export const hashtagSuggestion = () => ({
|
|||||||
props.clientRect as Props['getReferenceClientRect'],
|
props.clientRect as Props['getReferenceClientRect'],
|
||||||
appendTo: () => document.body,
|
appendTo: () => document.body,
|
||||||
content: component.element,
|
content: component.element,
|
||||||
showOnCreate: false,
|
showOnCreate: true,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
trigger: 'manual',
|
trigger: 'manual',
|
||||||
placement: 'bottom-start',
|
placement: 'bottom-start',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user