mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed search suggestions not triggered on query parameter
This commit is contained in:
parent
888c48a43a
commit
f4f9c21d32
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -214,7 +214,7 @@
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ 'assets/javascripts/bundle.7c74d729.min.js' | url }}"></script>
|
||||
<script src="{{ 'assets/javascripts/bundle.ce0c0ed4.min.js' | url }}"></script>
|
||||
{% for path in config["extra_javascript"] %}
|
||||
<script src="{{ path | url }}"></script>
|
||||
{% endfor %}
|
||||
|
@ -116,8 +116,10 @@ export function watchSearchQuery(
|
||||
|
||||
/* Set query from parameter */
|
||||
param$.subscribe(value => { // TODO: not ideal - find a better way
|
||||
if (value)
|
||||
if (value) {
|
||||
el.value = value
|
||||
el.focus()
|
||||
}
|
||||
})
|
||||
|
||||
/* Intercept focus and input events */
|
||||
|
Loading…
Reference in New Issue
Block a user