fix: use correct state when doc changed externally (#1646)
This commit is contained in:
@@ -83,7 +83,7 @@ export function Suggestion({
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const state = handleExit ? prev : next
|
const state = handleExit && !handleStart ? prev : next
|
||||||
const decorationNode = document.querySelector(`[data-decoration-id="${state.decorationId}"]`)
|
const decorationNode = document.querySelector(`[data-decoration-id="${state.decorationId}"]`)
|
||||||
const props: SuggestionProps = {
|
const props: SuggestionProps = {
|
||||||
editor,
|
editor,
|
||||||
|
|||||||
Reference in New Issue
Block a user