Fixed search suggestions not triggered on query parameter

This commit is contained in:
squidfunk 2022-04-02 17:19:28 +02:00
parent 888c48a43a
commit f4f9c21d32
4 changed files with 8 additions and 6 deletions

View File

@ -214,7 +214,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block scripts %} {% 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"] %} {% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script> <script src="{{ path | url }}"></script>
{% endfor %} {% endfor %}

View File

@ -116,8 +116,10 @@ export function watchSearchQuery(
/* Set query from parameter */ /* Set query from parameter */
param$.subscribe(value => { // TODO: not ideal - find a better way param$.subscribe(value => { // TODO: not ideal - find a better way
if (value) if (value) {
el.value = value el.value = value
el.focus()
}
}) })
/* Intercept focus and input events */ /* Intercept focus and input events */