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)andAlexander Kubyshkin authored and GitHub committed 2022-02-11 09:46:04 +01:00
1 parent 162466cad4
commit a5637bd2ac
1 file changed
+1
@@ -177,6 +177,7 @@ export function SuggestionsPlugin({
};
return editor
.snapshotSelection()
.deleteBackward(backward)
.deleteForward(forward)
.insertText(suggestionText)