From 6a666188370502bf81d444a6fa0840f2c39cb16f Mon Sep 17 00:00:00 2001 From: Allon Moritz Date: Wed, 27 Nov 2024 15:06:34 +0100 Subject: [PATCH] [5.2] Allow multiselect for checkboxes (#44500) --- build/media_source/system/js/multiselect.es6.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/media_source/system/js/multiselect.es6.js b/build/media_source/system/js/multiselect.es6.js index fb07448bf7f81..19757bf7ca1c2 100644 --- a/build/media_source/system/js/multiselect.es6.js +++ b/build/media_source/system/js/multiselect.es6.js @@ -47,7 +47,7 @@ class JMultiSelect { // Handle click on a row onRowClick({ target, shiftKey }) { // Do not interfere with links, buttons, inputs and other interactive elements - if (target.closest('a, button, input, select, textarea, details, dialog, audio, video')) { + if (!target.matches(this.boxSelector) && target.closest('a, button, input, select, textarea, details, dialog, audio, video')) { return; }