flyzto 2 mesiacov pred
rodič
commit
bfa47bda42

+ 7 - 4
web/apps/web-antd/src/views/match/components/solution_item.vue

@@ -164,12 +164,14 @@ const toggleSolution = () => {
 };
 
 const switchSolution = (index) => {
-  if (index != selectedIndex.value) {
-    selectedIndex.value = index;
+  if (index == selectedIndex.value) {
+    return;
   }
-  if (props.selected) {
-    toggleSolution();
+  selectedIndex.value = index;
+  if (!props.selected) {
+    return;
   }
+  toggleSolution();
 };
 
 const currentIndex = computed(() => {
@@ -322,6 +324,7 @@ const hg = computed(() => {
     &.selected {
       color: hsl(var(--primary-foreground));
       background-color: hsl(var(--primary));
+      cursor: default;
     }
     &:not(:last-child) {
       margin-right: 5px;