quartz
quartz copied to clipboard
Fix Non-English Anchor Popover Positioning Issue and Update Type Hint
This PR addresses two issues:
- Corrects the non-English anchor popover positioning problem by changing the
hash
passed toquerySelector
todecodeURIComponent(hash)
. This ensures that the popover correctly scroll its content to the corresponding title for non-English anchors. (fix #409) - Updates the type hint of
mouseEnterHandler
fromHTMLLinkElement
toHTMLAnchorElement
as the passed element is an<a>
element, not a<link>
element. Reference: MDN Documentation.