From f5ccfb852ea58556d6a57d03d0887302b8ef80ad Mon Sep 17 00:00:00 2001 From: mko Date: Tue, 19 Nov 2024 15:08:00 +0100 Subject: [PATCH] Prevents the row from being selected when clicked on an i-tag Fixes: OX-11094 --- .../default/assets/tycho/scripts/selectableTable.js.pasta | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/default/assets/tycho/scripts/selectableTable.js.pasta b/src/main/resources/default/assets/tycho/scripts/selectableTable.js.pasta index b019c8e7b..264a96bdb 100644 --- a/src/main/resources/default/assets/tycho/scripts/selectableTable.js.pasta +++ b/src/main/resources/default/assets/tycho/scripts/selectableTable.js.pasta @@ -32,6 +32,7 @@ sirius.ready(function () { _row.addEventListener('click', function (event) { if (event.target.tagName.toLowerCase() !== 'input' && event.target.tagName.toLowerCase() !== 'a' && + event.target.tagName.toLowerCase() !== 'i' && event.target.tagName.toLowerCase() !== 'button') { _checkbox.checked = !_checkbox.checked; _checkbox.dispatchEvent(new Event('change'));