mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed open details always closed on initial load
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.eb994cec.min.js' | url }}"></script>
|
<script src="{{ 'assets/javascripts/bundle.ceb052b1.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 %}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ interface MountOptions {
|
|||||||
export function watchDetails(
|
export function watchDetails(
|
||||||
el: HTMLDetailsElement, { target$, print$ }: WatchOptions
|
el: HTMLDetailsElement, { target$, print$ }: WatchOptions
|
||||||
): Observable<Details> {
|
): Observable<Details> {
|
||||||
let open = false
|
let open = true
|
||||||
return merge(
|
return merge(
|
||||||
|
|
||||||
/* Open and focus details on location target */
|
/* Open and focus details on location target */
|
||||||
|
|||||||
Reference in New Issue
Block a user