From 9b703a32c73556f9f8110f04cc3ef15b9101811d Mon Sep 17 00:00:00 2001
From: Robert Goldmann <deadlocker@gmx.de>
Date: Sun, 9 May 2021 22:53:04 +0200
Subject: [PATCH] #606 - handle click before focus lost event

---
 src/main/resources/static/js/customSelect.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/resources/static/js/customSelect.js b/src/main/resources/static/js/customSelect.js
index 863a84a83..e192cca63 100644
--- a/src/main/resources/static/js/customSelect.js
+++ b/src/main/resources/static/js/customSelect.js
@@ -115,7 +115,7 @@ class CustomSelect
 
         for(const option of document.querySelectorAll(this.selector + ' .custom-select-option'))
         {
-            option.addEventListener('click', function(event)
+            option.addEventListener('mousedown', function(event)
             {
                 self.confirmItem(this);
                 event.stopPropagation();
-- 
GitLab