select with images
parent
7a754dabae
commit
d54578fc25
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue