1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-14 19:07:41 +01:00

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

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

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(