Skip to content

Commit

Permalink
Added v-else and added :key
Browse files Browse the repository at this point in the history
  • Loading branch information
Roene-JustBetter committed Aug 26, 2024
1 parent 995f797 commit d91bd5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class="{{ $inputClasses }}"
</div>

<autocomplete
v-if="$root.loadAutocomplete"
v-else
v-on:mounted="() => window.document.getElementById('autocomplete-input').focus()"
v-bind:additionals="{{ json_encode(config('rapidez.frontend.autocomplete.additionals')) }}"
v-bind:debounce="{{ config('rapidez.frontend.autocomplete.debounce') }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="border-b py-4" v-if="resultsType == 'categories'">
<ul class="flex flex-col font-sans">
<li v-for="hit in resultsData.hits" class="flex flex-1 items-center w-full">
<li v-for="hit in resultsData.hits" :key="hit._source.id" class="flex flex-1 items-center w-full">
<a :href="hit._source.url" class="relative flex items-center group w-full py-2 text-sm gap-x-4">
@include('rapidez::layouts.partials.header.autocomplete.background')
<x-heroicon-o-arrow-turn-down-right class="size-5 text-inactive" />
Expand Down

0 comments on commit d91bd5c

Please sign in to comment.