Skip to content

Commit c7fbab0

Browse files
committed
fix: add the correct type for handleModalLightDismiss
1 parent 906ec24 commit c7fbab0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/app.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function handleGlobalKeyup() {
7575
/* A hack to get light dismiss to work in safari because it does not support closedby="any" yet */
7676
// https://codepen.io/paramagicdev/pen/gbYompq
7777
// see: https://github.com/npmx-dev/npmx.dev/pull/522#discussion_r2749978022
78-
function handleModalLightDismiss(e: any) {
78+
function handleModalLightDismiss(e: MouseEvent) {
7979
const modal = document.querySelector<HTMLDialogElement>('dialog:modal')
8080
if (modal && modal.open && !e.composedPath().includes(modal)) {
8181
modal.close()

0 commit comments

Comments
 (0)