We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
e.target
closest()
1 parent cbb73c4 commit 12b8f15Copy full SHA for 12b8f15
app/pages/about.vue
@@ -135,7 +135,8 @@ function toggle(c: GitHubContributor, btnEl: HTMLElement) {
135
136
function onDocumentPointerDown(e: PointerEvent) {
137
if (!activeContributor.value) return
138
- const t = e.target as HTMLElement
+ const t = e.target
139
+ if (!(t instanceof Element)) return
140
if (
141
!t.closest('[data-popover-panel]') &&
142
!t.closest(`[data-cid="${activeContributor.value.id}"]`)
0 commit comments