@bagelink/vue 1.7.43 → 1.7.47
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 +4 -2
- 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 +3 -3
package/package.json
CHANGED
|
@@ -160,7 +160,7 @@ function select(option: Option) {
|
|
|
160
160
|
|
|
161
161
|
function emitUpdate() {
|
|
162
162
|
if (props.multiselect) {
|
|
163
|
-
emit('update:modelValue', selectedItems.value.map(getValue).filter(
|
|
163
|
+
emit('update:modelValue', selectedItems.value.map(getValue).filter(v => v != null))
|
|
164
164
|
} else {
|
|
165
165
|
// selectedItems.value.splice(1, selectedItemCount.value - 1);
|
|
166
166
|
const [item] = selectedItems.value
|
|
@@ -170,8 +170,8 @@ function emitUpdate() {
|
|
|
170
170
|
|
|
171
171
|
function compareArrays(arr1: Option[], arr2: Option[]) {
|
|
172
172
|
if (arr1.length !== arr2.length) { return false }
|
|
173
|
-
const s1 = arr1.map(getValue).filter(
|
|
174
|
-
const s2 = arr2.map(getValue).filter(
|
|
173
|
+
const s1 = arr1.map(getValue).filter(v => v != null).map(String).sort()
|
|
174
|
+
const s2 = arr2.map(getValue).filter(v => v != null).map(String).sort()
|
|
175
175
|
return s1.every((v, i) => v === s2[i])
|
|
176
176
|
}
|
|
177
177
|
|