Skip to content

Commit 950ad13

Browse files
committed
chore: fix showPopover at positionPopover error
1 parent 5e034fe commit 950ad13

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

app/pages/about.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ async function positionPopover(anchorId: string) {
8888
if (!popover.matches(':popover-open')) {
8989
try {
9090
;(popover as any).showPopover()
91-
} catch (e) {}
91+
} catch (e) {
92+
if (import.meta.dev) {
93+
// oxlint-disable-next-line no-console
94+
console.warn('[positionPopover] showPopover failed:', e)
95+
}
96+
}
9297
}
9398
9499
// 3. One more tick to ensure the DOM is actually painted with the content
@@ -161,7 +166,7 @@ function onMouseLeave() {
161166
} catch (e) {
162167
if (import.meta.dev) {
163168
// oxlint-disable-next-line no-console
164-
console.warn('[positionPopover] showPopover failed:', e)
169+
console.warn('[onMouseLeave] hidePopover failed:', e)
165170
}
166171
}
167172
activeContributor.value = null

0 commit comments

Comments
 (0)