fir(popover): reuse generated popover id

This commit is contained in:
Emile Bangma 2025-04-10 20:46:16 +00:00 committed by GitHub
parent 8deea58ca8
commit 62a39447f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
} }