itemsapi / itemsjs

Extremely fast faceted search engine in JavaScript - lightweight, flexible, and simple to use
Apache License 2.0
351 stars 41 forks source link

Why does checkbox work to filter, but drop down box does not? #139

Open JG515 opened 1 year ago

JG515 commented 1 year ago

Please see images below. We can't figure out why selection drop down boxes don't filter the search list, but checkboxes do.

facet1 facet2

cigolpl commented 1 year ago

Could you provide more info how to reproduce it ? Seems to be more general JavaScript or Vue + HTML problem than ItemsJS itself

elizabethyalkut commented 4 days ago

I'm having the same issue, and get the console error "Uncaught (in promise) TypeError: e.forEach is not a function". It only appears in the console when I open the <select> for the facet.

<select v-if="facet.name === 'ageCategory'" v-model="filters[facet.name]">
<option v-for="bucket in facet.buckets" v-bind:value="bucket.key">
{{ bucket.key }} ({{ bucket.doc_count }})
</option>
</select>