From 6087ebe2495615e8164a56a924446320d2f2ee5d Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 12 Mar 2023 01:19:43 +0100 Subject: [PATCH] AutoSuggest: fix click/append event Keyboard was fine, it was just mouse events that were broken ^^' --- public/js/autosuggest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/autosuggest.js b/public/js/autosuggest.js index 76ab8208..e1bcb425 100644 --- a/public/js/autosuggest.js +++ b/public/js/autosuggest.js @@ -124,7 +124,7 @@ class AutoSuggest { node.innerHTML = this.highlightMatches(query_tokens, item.label); node.jsondata = item; node.addEventListener('click', event => { - this.appendCallback(event.target.jsondata); + this.appendCallback(node.jsondata); this.closeContainer(); this.clearInput(); });