|
|
@@ -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;
|