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

(cherry picked from commit 4d0a37baed)

Co-authored-by: Alexander Kubyshkin <i.am.glint@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-02-11 09:46:04 +01:00
committed by GitHub
co-authored by Alexander Kubyshkin
parent 162466cad4
commit a5637bd2ac
@@ -177,6 +177,7 @@ export function SuggestionsPlugin({
};
return editor
.snapshotSelection()
.deleteBackward(backward)
.deleteForward(forward)
.insertText(suggestionText)