mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04:06 -06:00
Merge c4aa2eddce into 87f7f4804e
This commit is contained in:
commit
ae6543ff0f
@ -29,6 +29,10 @@ async function mouseEnterHandler(
|
||||
popoverElement.classList.add("active-popover")
|
||||
setPosition(popoverElement as HTMLElement)
|
||||
|
||||
// ensures always operate on the live DOM element rather than a closed-over variable reference
|
||||
const popoverInner = popoverElement.querySelector(".popover-inner") as HTMLElement | null
|
||||
if (!popoverInner) return
|
||||
|
||||
if (hash !== "") {
|
||||
const targetAnchor = `#popover-internal-${hash.slice(1)}`
|
||||
const heading = popoverInner.querySelector(targetAnchor) as HTMLElement | null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user