File tree 1 file changed +3
-1
lines changed
src/client/theme-default/components
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const { theme, localeIndex } = useData()
26
26
// payload), we delay initializing it until the user has actually clicked or
27
27
// hit the hotkey to invoke it.
28
28
const loaded = ref (false )
29
+ const actuallyLoaded = ref (false )
29
30
30
31
const buttonText = computed (() => {
31
32
const options = theme .value .search ?.options ?? theme .value .algolia
@@ -169,9 +170,10 @@ const provider = __ALGOLIA__ ? 'algolia' : __VP_LOCAL_SEARCH__ ? 'local' : ''
169
170
<VPAlgoliaSearchBox
170
171
v-if =" loaded"
171
172
:algolia =" theme.search?.options ?? theme.algolia"
173
+ @vue:beforeMount =" actuallyLoaded = true"
172
174
/>
173
175
174
- <div v-else id =" docsearch" >
176
+ <div v-if = " !actuallyLoaded " id =" docsearch" >
175
177
<VPNavBarSearchButton :placeholder =" buttonText" @click =" load" />
176
178
</div >
177
179
</template >
You can’t perform that action at this time.
0 commit comments