select with images

main
alexanderroese 2024-07-18 17:48:12 +02:00
parent 7a754dabae
commit d54578fc25
1 changed files with 2 additions and 0 deletions

View File

@ -641,6 +641,8 @@
// Close the dropdown if the user clicks outside of it // Close the dropdown if the user clicks outside of it
window.addEventListener('click', function(event) { 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 (!event.target.matches('#shx-custom-enhanced-dropdown-font-select-button')) {
if (dropdownContent.style.display === 'block') { if (dropdownContent.style.display === 'block') {
dropdownContent.style.display = 'none'; dropdownContent.style.display = 'none';