Skip to content

Commit

Permalink
fix(vue-instantsearch): only render list in <refinement-list> when …
Browse files Browse the repository at this point in the history
…it has items (#6092)
  • Loading branch information
sarahdayan authored Mar 18, 2024
1 parent 04fd202 commit 9a38de0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
>
<div :class="suit('noResults')">No results.</div>
</slot>
<ul :class="suit('list')">
<ul v-if="items.length > 0" :class="suit('list')">
<li
:class="[suit('item'), item.isRefined && suit('item', 'selected')]"
v-for="item in items"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ exports[`allows search bar classes override when it's searchable 1`] = `
exports[`renders correctly (empty) 1`] = `
<div class="ais-RefinementList ais-RefinementList--noRefinement">
<ul class="ais-RefinementList-list">
</ul>
</div>
`;
Expand Down

0 comments on commit 9a38de0

Please sign in to comment.