sprintify-ui 0.0.90 → 0.0.91

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.
@@ -2284,18 +2284,16 @@ const ds = { class: "relative" }, fs = { class: "relative" }, ms = ["value", "pl
2284
2284
  () => I.value,
2285
2285
  () => {
2286
2286
  var W;
2287
- if (l.modelValueShow !== !1)
2288
- if (I.value) {
2289
- j((W = I.value) == null ? void 0 : W.label);
2290
- const ce = t.value.findIndex(
2291
- (me) => {
2292
- var Ie;
2293
- return me.value === ((Ie = I.value) == null ? void 0 : Ie.value);
2294
- }
2295
- );
2296
- ce >= 0 && (m.value = ce);
2297
- } else
2298
- m.value = 0, j("");
2287
+ if (I.value) {
2288
+ const ce = t.value.findIndex(
2289
+ (me) => {
2290
+ var Ie;
2291
+ return me.value === ((Ie = I.value) == null ? void 0 : Ie.value);
2292
+ }
2293
+ );
2294
+ ce >= 0 && (m.value = ce), l.modelValueShow && j((W = I.value) == null ? void 0 : W.label);
2295
+ } else
2296
+ m.value = 0, l.modelValueShow && j("");
2299
2297
  },
2300
2298
  { immediate: !0 }
2301
2299
  ), xe(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -290,24 +290,25 @@ const optionActive = computed(() => {
290
290
  );
291
291
  });
292
292
 
293
- // Update the keywords when the model value changes
293
+ // Update the keywords + selectionIndex when the model value changes
294
294
  watch(
295
295
  () => normalizedModelValue.value,
296
296
  () => {
297
- if (props.modelValueShow === false) {
298
- return;
299
- }
300
297
  if (normalizedModelValue.value) {
301
- setKeywords(normalizedModelValue.value?.label);
302
298
  const index = filteredNormalizedOptions.value.findIndex(
303
299
  (option) => option.value === normalizedModelValue.value?.value
304
300
  );
305
301
  if (index >= 0) {
306
302
  selectionIndex.value = index;
307
303
  }
304
+ if (props.modelValueShow) {
305
+ setKeywords(normalizedModelValue.value?.label);
306
+ }
308
307
  } else {
309
308
  selectionIndex.value = 0;
310
- setKeywords('');
309
+ if (props.modelValueShow) {
310
+ setKeywords('');
311
+ }
311
312
  }
312
313
  },
313
314
  { immediate: true }