From d54578fc25bcfd8e63e597239c8201c3ec6e2413 Mon Sep 17 00:00:00 2001 From: alexanderroese Date: Thu, 18 Jul 2024 17:48:12 +0200 Subject: [PATCH] select with images --- snippets/shx-3d-render-input.liquid | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snippets/shx-3d-render-input.liquid b/snippets/shx-3d-render-input.liquid index 0d0e32b..a9ca065 100644 --- a/snippets/shx-3d-render-input.liquid +++ b/snippets/shx-3d-render-input.liquid @@ -641,6 +641,8 @@ // Close the dropdown if the user clicks outside of it window.addEventListener('click', function(event) { + const dropdownContent = document.getElementById('shx-custom-enhanced-dropdown-font-dropdown-content'); + if (!event.target.matches('#shx-custom-enhanced-dropdown-font-select-button')) { if (dropdownContent.style.display === 'block') { dropdownContent.style.display = 'none';