Skip to content

Commit e20904a

Browse files
authored
fix: cannot read stopPropagation of undefined in navigation utils (#221)
1 parent 01bb8ff commit e20904a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/navigation/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export const getItemClickHandler: ({
1616
({column, index, onActiveItemChange, activeItemId}) =>
1717
(e) => {
1818
const id = `${column}-${index}`;
19-
e.stopPropagation();
19+
if (e) {
20+
e.stopPropagation();
21+
}
2022
onActiveItemChange(id === activeItemId ? undefined : `${column}-${index}`);
2123
};

0 commit comments

Comments
 (0)