Skip to content

Commit

Permalink
fix(Table): not propagate click in table actions menu (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaticenslaved authored Sep 17, 2024
1 parent 33ad008 commit 226fbf0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,13 @@ export function withTableActions<I extends TableDataItem, E extends {} = {}>(
}

return (item: I, index: number, event: React.MouseEvent<HTMLTableRowElement>) => {
if (
// @ts-expect-error
event.nativeEvent.target.closest(`.${menuCn}`)
) {
return undefined;
}

if (
// @ts-expect-error
event.nativeEvent.target.matches(
Expand Down

0 comments on commit 226fbf0

Please sign in to comment.