Skip to content

Commit

Permalink
fix: use correct state when doc changed externally (#1646)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrym authored Aug 9, 2021
1 parent b426e8c commit 60606f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/suggestion/src/suggestion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 60606f9

Please sign in to comment.