sprintify-ui 0.6.76 → 0.6.78

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,6 +1,6 @@
1
1
  {
2
2
  "name": "sprintify-ui",
3
- "version": "0.6.76",
3
+ "version": "0.6.78",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build-fast": "rimraf dist && vite build",
@@ -131,7 +131,7 @@ const autocomplete = ref<InstanceType<typeof BaseAutocomplete> | null>(null);
131
131
 
132
132
  const model = computed(() => {
133
133
  return props.modelValue
134
- ? props.options.find((option) => option[props.primaryKey] === props.modelValue)
134
+ ? props.options.find((option) => (option[props.primaryKey] + '') === (props.modelValue + ''))
135
135
  : null;
136
136
  });
137
137
 
@@ -57,6 +57,8 @@ import BaseActionItem from './BaseActionItem.vue';
57
57
  import BaseNavbarSideItemContent from './BaseNavbarSideItemContent.vue';
58
58
  import BaseCounter from './BaseCounter.vue';
59
59
 
60
+ const router = useRouter();
61
+
60
62
  const props = defineProps({
61
63
  item: {
62
64
  required: true,
@@ -83,9 +85,11 @@ const routeActive = computed((): boolean => {
83
85
  return false;
84
86
  }
85
87
 
86
- const link = useLink({ to: props.item.to });
88
+ const itemRoute = router.resolve(props.item.to);
87
89
 
88
- return link.isActive.value;
90
+ return router.currentRoute.value.matched.some((route) => {
91
+ return route.path.startsWith(itemRoute.path);
92
+ });
89
93
  });
90
94
 
91
95
  const showSubActions = computed((): boolean => {