Omit unnecessary recomputations for annotations

This commit is contained in:
squidfunk 2021-12-05 17:51:40 +01:00
parent cb57ce986e
commit 21b7bc4999
8 changed files with 21 additions and 19 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -213,7 +213,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.3a58056d.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.eb994cec.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

View File

@ -16,5 +16,5 @@
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="{{ 'overrides/assets/javascripts/bundle.de54bb68.min.js' | url }}"></script>
<script src="{{ 'overrides/assets/javascripts/bundle.ab1cf86a.min.js' | url }}"></script>
{% endblock %}

View File

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