Fix issue with undo history in query field when suggestion inserted (#28656) (#39114)

This commit is contained in:
Alexander Kubyshkin 2022-02-11 10:26:35 +02:00 committed by GitHub
parent 1239911b5b
commit 4d0a37baed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,7 @@ export function SuggestionsPlugin({
}; };
return editor return editor
.snapshotSelection()
.deleteBackward(backward) .deleteBackward(backward)
.deleteForward(forward) .deleteForward(forward)
.insertText(suggestionText) .insertText(suggestionText)