@bagelink/vue 1.7.47 → 1.7.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form/inputs/SelectInput.vue.d.ts +2 -4
- package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form/inputs/SelectInput.vue +2 -2
package/package.json
CHANGED
|
@@ -182,7 +182,7 @@ watch(
|
|
|
182
182
|
const newOption = Array.isArray(props.options)
|
|
183
183
|
? (props.options.find(o => getValue(o) === newVal) ?? newVal)
|
|
184
184
|
: newVal
|
|
185
|
-
if (newOption && !isSelected(newOption)) { selectedItems.value = [newOption] }
|
|
185
|
+
if (newOption != null && !isSelected(newOption)) { selectedItems.value = [newOption] }
|
|
186
186
|
} else {
|
|
187
187
|
const newData = [newVal].flat()
|
|
188
188
|
const isSame = compareArrays(newData, selectedItems.value)
|
|
@@ -233,7 +233,7 @@ watch(
|
|
|
233
233
|
const fullOption = newResults.find(
|
|
234
234
|
(o: Option) => getValue(o) === optionValue,
|
|
235
235
|
)
|
|
236
|
-
if (fullOption) {
|
|
236
|
+
if (fullOption !== undefined) {
|
|
237
237
|
selectedItems.value.splice(i, 1, fullOption)
|
|
238
238
|
}
|
|
239
239
|
}
|