1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-12 01:50:52 +01:00

Merge branch 'master' into chore/update-to-mkdocs-1.6

This commit is contained in:
squidfunk 2024-04-25 10:21:10 +07:00
commit 02034087ad
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
4 changed files with 14 additions and 11 deletions

View File

@ -249,7 +249,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.3220b9d7.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.dd8806f2.min.js' | url }}"></script>
{% for script in config.extra_javascript %}
{{ script | script_tag }}
{% endfor %}

View File

@ -38,6 +38,7 @@ import {
skip,
startWith,
subscribeOn,
switchMap,
takeUntil,
tap,
withLatestFrom
@ -53,7 +54,8 @@ import {
getElementSize,
getElements,
watchElementContentOffset,
watchElementSize
watchElementSize,
watchElementVisibility
} from "~/browser"
import { renderTabbedControl } from "~/templates"
import { h } from "~/utilities"
@ -284,8 +286,9 @@ export function mountContentTabs(
})
/* Create and return component */
return watchContentTabs(inputs)
return watchElementVisibility(el)
.pipe(
switchMap(() => watchContentTabs(inputs)),
tap(state => push$.next(state)),
finalize(() => push$.complete()),
map(state => ({ ref: el, ...state }))