vueform / multiselect

Vue 3 multiselect component with single select, multiselect and tagging options (+Tailwind CSS support).
https://vueform.com
MIT License
803 stars 149 forks source link

t.map is not a function - multiselect component unable to select from array of option objects #425

Open mflan826 opened 2 months ago

mflan826 commented 2 months ago

Version

Description

When :options is an array of objects containing label and value keys, when an option is selected, for following TypeError is thrown:

t.map is not a function at ej (vue.global.prod.js:5:10749) at vue.global.prod.js:5:10934 at Array.map () at Proxy.concat (vue.global.prod.js:5:10927) at Ce (multiselect.global.min.js:7:4878) at Pe (multiselect.global.min.js:7:6117) at Proxy.handleOptionClick (multiselect.global.min.js:7:9943) at onClick (multiselect.global.min.js:7:55535) at tZ (vue.global.prod.js:5:20832) at tY (vue.global.prod.js:5:20900)

Demo

For reference, this issue also exists on Vueforms demo attempting to select an option from example 3 or example 5: https://jsfiddle.net/xajub20o/

samueltomaselli commented 2 months ago

Same problem here

deepusv90 commented 1 month ago

Facing same problem here

willbrowningme commented 1 month ago

Same issue here, are you using Vite to compile?

UPDATE: Downgrading Vite back to v5.4.2 in your package.json "vite": "5.4.2" works as a temporary fix.

deepusv90 commented 1 month ago

Yes I am using Vite to compile.

I'm not sure how, but it just started working again

yusufkaracaburun commented 1 month ago

Strange, I had the same problem, even after updating Vite to v5.4.2 it wasn't working. And now suddenly it started working again.

darthf1 commented 1 month ago

Probably https://github.com/vuejs/core/issues/11792