Skip to content

Commit 7dc081c

Browse files
authored
Merge pull request #3981 from jaehanbyun/fix/checkbox-click-in-dialog
frontend: Table: Prevent dialog checkbox clicks from triggering table row selection
2 parents 76dd937 + 225e3b5 commit 7dc081c

File tree

1 file changed

+2
-1
lines changed
  • frontend/src/components/common/Table

1 file changed

+2
-1
lines changed

frontend/src/components/common/Table/Table.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ export default function Table<RowItem extends Record<string, any>>({
438438
const shouldHandle =
439439
!!target &&
440440
!!target.closest('input[type="checkbox"]') &&
441-
!target.closest('.MuiSwitch-root, [role="switch"]');
441+
!target.closest('.MuiSwitch-root, [role="switch"]') &&
442+
!target.closest('[role="dialog"]');
442443

443444
if (!shouldHandle) {
444445
return;

0 commit comments

Comments
 (0)