Skip to content

Commit 35ab11f

Browse files
committed
mark mouse event explicitly null
1 parent e2655f3 commit 35ab11f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/components/ViewFileTreeItem.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const isLoading = ref(false);
2525
const children = ref(props.item.children);
2626
const collapsed = ref(!props.item.children);
2727
28-
const doLoadChildren = async (e?: MouseEvent) => {
29-
// the event is only not undefined if the user explicitly clicked on the directory item toggle. the preventDefault
28+
const doLoadChildren = async (e: MouseEvent | null) => {
29+
// the event is only not null if the user explicitly clicked on the directory item toggle. the preventDefault
3030
// stops the event from bubbling up and causing a directory content load
3131
e?.preventDefault();
3232
@@ -46,7 +46,7 @@ const doLoadDirContent = (e: MouseEvent) => {
4646
if (!isPlainClick(e)) return;
4747
e.preventDefault();
4848
49-
doLoadChildren();
49+
doLoadChildren(null);
5050
props.navigateViewContent(props.item.fullPath);
5151
};
5252

0 commit comments

Comments
 (0)