mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -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()
|
clearActivePopover()
|
||||||
|
|
||||||
const link = this
|
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") {
|
if (link.dataset.noPopover === "true") {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user