Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mflan826 opened this issue Sep 3, 2024 · 6 comments

Comments

@mflan826
Copy link

mflan826 commented Sep 3, 2024

Version

  • Vue version: 3

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/

@mflan826 mflan826 changed the title t.map is not a function - multiselect component unable to select from array of object options t.map is not a function - multiselect component unable to select from array of option objects Sep 3, 2024
@samueltomaselli
Copy link

Same problem here

@deepusv90
Copy link

Facing same problem here

@willbrowningme
Copy link

willbrowningme commented Sep 4, 2024

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
Copy link

Yes I am using Vite to compile.

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

@yusufkaracaburun
Copy link

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
Copy link

darthf1 commented Sep 7, 2024

Probably vuejs/core#11792

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants