Skip to content

Commit 7f9b7e8

Browse files
committed
fix(isRowClick): #48
row select should include svg/path (icon)
1 parent 6f4385d commit 7f9b7e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/common/util/isRowClick.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ import * as React from 'react';
55
// };
66

77
export const isRowClick = (event: React.SyntheticEvent | React.KeyboardEvent) =>
8+
(event.target as HTMLElement).tagName === 'svg' ||
9+
(event.target as HTMLElement).tagName === 'path' ||
810
(event.target as HTMLElement).tagName === 'DIV' ||
911
(event.target as HTMLElement).tagName === 'SPAN';

0 commit comments

Comments
 (0)