Skip to content

Commit

Permalink
Fixed code annotations always closing on click
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Nov 30, 2021
1 parent bfb14d8 commit 194a08e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 194a08e

Please sign in to comment.