We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82841ee commit d61b88dCopy full SHA for d61b88d
src/Select.vue
@@ -154,7 +154,7 @@ const setOption = (option: GenericOption) => {
154
const isAlreadyPresent = selected.value.find((v) => v === option.value);
155
156
if (!isAlreadyPresent) {
157
- selected.value.push(option.value);
+ selected.value = [...selected.value, option.value]
158
}
159
else {
160
selected.value = selected.value.filter((v) => v !== option.value);
0 commit comments