mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-23 21:04:07 -06:00
fir(popover): reuse generated popover id
This commit is contained in:
parent
8deea58ca8
commit
62a39447f7
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user