Fixed missing dropdown after some link navigations

This commit is contained in:
Jan Böhmer 2024-02-28 22:08:32 +01:00
parent faa3bea3ab
commit 746ba398a9
2 changed files with 2 additions and 107 deletions

View file

@ -69,7 +69,8 @@
</div>
</div>
<div {{ stimulus_controller('elements/part_livesearch') }} class="mt-auto mb-auto"
{# It is important that this element has an id field. Otherwise the dropdown panel wont appear after some link clicks #}
<div {{ stimulus_controller('elements/part_livesearch') }} class="mt-auto mb-auto" id="navbar-quicksearch-container"
data-autocomplete="{{ path('typeahead_parts', {'query': '__QUERY__'}) }}" data-detail-url="{{ path('part_info', {'id': '__ID__'}) }}">
<input type="hidden" name="keyword" required {{ stimulus_target('elements/part_livesearch', 'input') }}>
</div>