mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed code annotations always closing on click
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -213,7 +213,7 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% 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"] %}
|
{% for path in config["extra_javascript"] %}
|
||||||
<script src="{{ path | url }}"></script>
|
<script src="{{ path | url }}"></script>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ export function mountAnnotation(
|
|||||||
})
|
})
|
||||||
|
|
||||||
/* Blur open annotation on click (= close) */
|
/* 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 })
|
const blur$ = fromEvent(index, "mousedown", { once: true })
|
||||||
push$
|
push$
|
||||||
.pipe(
|
.pipe(
|
||||||
|
|||||||
Reference in New Issue
Block a user