Skip to content

Commit

Permalink
fix(SelectMenu): filteredOptions might be undefined (#1541)
Browse files Browse the repository at this point in the history
Co-authored-by: Sedana Yoga <55230513+sedanayoga@users.noreply.github.com>
  • Loading branch information
angsanley and SedanaYoga committed Mar 20, 2024
1 parent 5cb45c5 commit b0ecac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/forms/SelectMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
</div>
</li>
</component>
<p v-else-if="searchable && query && !filteredOptions.length" :class="uiMenu.option.empty">
<p v-else-if="searchable && query && !filteredOptions?.length" :class="uiMenu.option.empty">
<slot name="option-empty" :query="query">
No results for "{{ query }}".
</slot>
</p>
<p v-else-if="!filteredOptions.length" :class="uiMenu.empty">
<p v-else-if="!filteredOptions?.length" :class="uiMenu.empty">
<slot name="empty" :query="query">
No options.
</slot>
Expand Down

0 comments on commit b0ecac5

Please sign in to comment.