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:
parent
bfb14d8582
commit
194a08e0fe
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>
|
||||
{% 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 %}
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user