diff --git a/quartz/components/scripts/popover.inline.ts b/quartz/components/scripts/popover.inline.ts index e07205bc8..385d101f5 100644 --- a/quartz/components/scripts/popover.inline.ts +++ b/quartz/components/scripts/popover.inline.ts @@ -12,7 +12,11 @@ async function mouseEnterHandler( clearActivePopover() const link = this - const id = randomIdNonSecure() + if (this.dataset.popoverId === undefined) { + this.dataset.popoverId = randomIdNonSecure() + } + const id = this.dataset.popoverId + if (link.dataset.noPopover === "true") { return }