diff --git a/packages/suggestion/src/suggestion.ts b/packages/suggestion/src/suggestion.ts index a3f071a5..cef89db7 100644 --- a/packages/suggestion/src/suggestion.ts +++ b/packages/suggestion/src/suggestion.ts @@ -83,7 +83,7 @@ export function Suggestion({ return } - const state = handleExit ? prev : next + const state = handleExit && !handleStart ? prev : next const decorationNode = document.querySelector(`[data-decoration-id="${state.decorationId}"]`) const props: SuggestionProps = { editor,