This commit is contained in:
syuilo
2022-01-28 12:20:42 +09:00
parent bfc9873fb9
commit 974269b8f1
5 changed files with 10 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ function onClick(ev: MouseEvent) {
if (props.selectMode) {
emit('chosen', props.file);
} else {
os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target || undefined) as HTMLElement | undefined);
os.popupMenu(getMenu(), (ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined);
}
}