mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-01 10:18:54 -04:00
Omit unnecessary recomputations for annotations
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
|
||||
import {
|
||||
Observable,
|
||||
distinctUntilChanged,
|
||||
fromEvent,
|
||||
map,
|
||||
merge,
|
||||
@@ -60,6 +61,7 @@ export function watchElementFocus(
|
||||
? el.contains(active)
|
||||
: false
|
||||
}),
|
||||
startWith(el === getActiveElement())
|
||||
startWith(el === getActiveElement()),
|
||||
distinctUntilChanged()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user