diff --git a/docs/.vitepress/theme/components/ToggleIndexes.vue b/docs/.vitepress/theme/components/ToggleIndexes.vue
index 5e2fb4697..76149375d 100644
--- a/docs/.vitepress/theme/components/ToggleIndexes.vue
+++ b/docs/.vitepress/theme/components/ToggleIndexes.vue
@@ -1,8 +1,15 @@
diff --git a/docs/.vitepress/theme/components/ToggleStarred.vue b/docs/.vitepress/theme/components/ToggleStarred.vue
index 0bcf0183e..ae5812912 100644
--- a/docs/.vitepress/theme/components/ToggleStarred.vue
+++ b/docs/.vitepress/theme/components/ToggleStarred.vue
@@ -3,9 +3,17 @@ import { onBeforeUnmount, onMounted, ref } from 'vue'
import Switch from './Switch.vue'
const isDisabled = ref(false)
+const switchKey = ref(0)
const syncDisabled = () => {
- isDisabled.value = document.documentElement.classList.contains('indexes-only')
+ const root = document.documentElement
+ const disabled = root.classList.contains('indexes-only')
+ isDisabled.value = disabled
+
+ if (disabled && root.classList.contains('starred-only')) {
+ root.classList.remove('starred-only')
+ switchKey.value += 1
+ }
}
let observer: MutationObserver | undefined
@@ -28,7 +36,11 @@ const toggleStarred = () => {
-
+