From 27b55eb3ee17d8d7b55f6af5eed8b1f4eea32cb4 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 3 Jun 2022 08:07:27 +0200 Subject: [PATCH] make openOnFocus=false explicit --- src/public/app/services/note_autocomplete.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/public/app/services/note_autocomplete.js b/src/public/app/services/note_autocomplete.js index b95074939..8c365c516 100644 --- a/src/public/app/services/note_autocomplete.js +++ b/src/public/app/services/note_autocomplete.js @@ -140,6 +140,9 @@ function initNoteAutocomplete($el, options) { appendTo: document.querySelector('body'), hint: false, autoselect: true, + // openOnFocus has to be false, otherwise re-focus (after return from note type chooser dialog) forces + // re-querying of the autocomplete source which then changes currently selected suggestion + openOnFocus: false, minLength: 0, tabAutocomplete: false }, [