Skip to content

Commit

Permalink
Merge pull request #1480 from scireum/feature/mko/OX-11094
Browse files Browse the repository at this point in the history
Prevents the row from being selected when clicked on an i-tag
  • Loading branch information
mko-sci authored Nov 20, 2024
2 parents bd8aa36 + f5ccfb8 commit 938daa3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 938daa3

Please sign in to comment.