From 9ddd22839dfc43f0cc30407397fed6bc03fd7ba6 Mon Sep 17 00:00:00 2001 From: Viet Hang Nguyen Date: Fri, 6 May 2022 15:46:11 +0200 Subject: [PATCH] Change emitted event's name to avoid autocompletion being fired twice Event name collision with the autocomplete library causes autocompletion to be fired again when an item is already chosen --- ga-search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ga-search.js b/ga-search.js index eee507e..584aaf3 100644 --- a/ga-search.js +++ b/ga-search.js @@ -130,7 +130,7 @@ class GeoadminSearch extends LitElement { onSubmit: result => { if (result) { - this.dispatchEvent(new CustomEvent('submit', { + this.dispatchEvent(new CustomEvent('ga-submit', { bubbles: true, composed: true, detail: {