-
Notifications
You must be signed in to change notification settings - Fork 132
multiple select : v-model init value not working #4
Comments
Is it fixed? |
Having same issue @bosquig, it fails when we prepopulate values in |
Thank you very much, You saved the day. |
Well the maintainer doesn't seem to respond whatsoever... |
@bosquig it wouldn't work with vite for now ? |
@jamols09 It wouldn't work with vue 3. I don't think vite has to do with it. My forked repo with the fix works with vue 3 and vite though. |
@bosquig console warning still exists, can you please fix this? |
Hi,
If multiple = true, the v-model value can not be initialized with a value other than null in setup/data function. For example:
does not work and throws the following error :
Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
at Proxy.isSelected (vue3-treeselect.common.js:5559)
Checking for null in the isSelected function seems to be enough to fix this :
Can you fix it please ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: