Skip to content

Commit

Permalink
Update popup.js
Browse files Browse the repository at this point in the history
Only trigger on mousedown, because when selecting text to copy you sometimes leave the modal and that would close it.
  • Loading branch information
AIC-BV authored Aug 28, 2024
1 parent 55701c2 commit 3a1511a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/assets/ui/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3a1511a

Please sign in to comment.