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:
parent
4be2ab283c
commit
accfc4ff87
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.eb994cec.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.ceb052b1.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -81,7 +81,7 @@ interface MountOptions {
|
||||
export function watchDetails(
|
||||
el: HTMLDetailsElement, { target$, print$ }: WatchOptions
|
||||
): Observable<Details> {
|
||||
let open = false
|
||||
let open = true
|
||||
return merge(
|
||||
|
||||
/* Open and focus details on location target */
|
||||
|
Loading…
Reference in New Issue
Block a user