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