@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.7.43",
4
+ "version": "1.7.47",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -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(Boolean))
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(Boolean).map(String).sort()
174
- const s2 = arr2.map(getValue).filter(Boolean).map(String).sort()
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