@antify/ui 4.1.12 → 4.1.16

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.
@@ -140,13 +140,16 @@ const skeletonGrouped = computed(() => {
140
140
  }
141
141
  });
142
142
  const filteredOptions = computed(() => {
143
+ const searchTerm = tagInput.value.toLowerCase();
144
+
143
145
  return props.options.filter(option => {
144
- // Remove all elements that are in modelValue from the filtered options
145
- if (_modelValue.value && !props.allowDuplicates) {
146
- return !_modelValue.value?.includes(option.value) && !option.isDeleted;
146
+ if (option.isDeleted) return false;
147
+
148
+ if (!props.allowDuplicates && _modelValue.value?.includes(option.value)) {
149
+ return false;
147
150
  }
148
151
 
149
- return option.label.toLowerCase().includes(tagInput.value.toLowerCase()) && !option.isDeleted;
152
+ return option.label.toLowerCase().includes(searchTerm);
150
153
  });
151
154
  });
152
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antify/ui",
3
- "version": "4.1.12",
3
+ "version": "4.1.16",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {