vueform / multiselect

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

Not strict equality of option values (1 or true) #316

Closed tpuida closed 1 year ago

tpuida commented 1 year ago

Version

Description

The multiselect got the following options:

[{
    "label": "Nil value",
    "value": null
}, {
    "label": "String value",
    "value": "a"
}, {
    "label": "Integer value",
    "value": 1
}, {
    "label": "Boolean value",
    "value": true
}] 

When a user selects "Integer value" or "Boolean value" two options shows like selected.

Demo

Look at JSFiddle to reproduce the bug

adamberecz commented 1 year ago

Thanks for the report. Fixed in 2.6.0.