Fixed code annotations always closing on click

This commit is contained in:
squidfunk
2021-11-30 15:57:21 +01:00
parent bfb14d8582
commit 194a08e0fe
4 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ export function mountAnnotation(
})
/* Blur open annotation on click (= close) */
const index = getElement(":scope > :last-child")
const index = getElement(":scope > :last-child", el)
const blur$ = fromEvent(index, "mousedown", { once: true })
push$
.pipe(