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';