Skip to content

Commit 89d0606

Browse files
committed
fix: add toggle event type + correct for popover
https://developer.mozilla.org/docs/Web/API/ToggleEvent/source
1 parent b0511c7 commit 89d0606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/pages/about.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const roleLabels = computed(
7575
7676
const activeContributor = shallowRef<GitHubContributor>()
7777
78-
function onBeforeToggleHoverCard(event) {
78+
function onBeforeToggleHoverCard(event: ToggleEvent & { source: HTMLElement }) {
7979
const { cid } = event.source.dataset
8080
const contributor = contributors.value.find(c => c.id === Number(cid))
8181
activeContributor.value = contributor

0 commit comments

Comments
 (0)