From 90ca2f2d23810ec8e368cc108a09e4a4a15b93fe Mon Sep 17 00:00:00 2001 From: eight Date: Mon, 18 Sep 2017 07:33:07 +0800 Subject: [PATCH] Fix: autocomplete should use changes event --- edit/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/edit.js b/edit/edit.js index 256ddd7e..855e7932 100644 --- a/edit/edit.js +++ b/edit/edit.js @@ -1037,7 +1037,7 @@ function toggleSectionHeight(cm) { function setupAutocomplete(cm, enable = true) { const onOff = enable ? 'on' : 'off'; - cm[onOff]('change', autocompleteOnTyping); + cm[onOff]('changes', autocompleteOnTyping); cm[onOff]('pick', autocompletePicked); }