mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-25 07:12:44 -04:00
Fixed instant loading causing jump for code annotations
This commit is contained in:
@@ -222,7 +222,10 @@ export function mountAnnotation(
|
||||
takeUntil(done$),
|
||||
filter(ev => !(ev.metaKey || ev.ctrlKey))
|
||||
)
|
||||
.subscribe(ev => ev.preventDefault())
|
||||
.subscribe(ev => {
|
||||
ev.stopPropagation()
|
||||
ev.preventDefault()
|
||||
})
|
||||
|
||||
/* Allow to open link in new tab or blur on close */
|
||||
fromEvent<MouseEvent>(index, "mousedown")
|
||||
|
||||
Reference in New Issue
Block a user