From 3a1511af05f263d7ea816467eaf2a79ce22689bc Mon Sep 17 00:00:00 2001 From: AIC BV <89913092+AIC-BV@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:02:45 +0200 Subject: [PATCH] Update popup.js Only trigger on mousedown, because when selecting text to copy you sometimes leave the modal and that would close it. --- modules/system/assets/ui/js/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/assets/ui/js/popup.js b/modules/system/assets/ui/js/popup.js index bea65444b0..7f0bce777f 100644 --- a/modules/system/assets/ui/js/popup.js +++ b/modules/system/assets/ui/js/popup.js @@ -216,7 +216,7 @@ modal.css('z-index', this.options.zIndex + 20) if (this.options.allowDismiss) { - modal.on('click', function(e) { + modal.on('mousedown', function(e) { const target = e.target; if (target.classList.contains('control-popup')) { modal.hide()