SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 58acbda9 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Close header search form when search page is mounted

parent 428b9ff5
No related branches found
No related tags found
No related merge requests found
......@@ -226,6 +226,8 @@ export default {
onMounted( () => {
initialQuery.value = JSON.parse(document.getElementById('json_q').textContent)
})
// Close search form in header in case it is open
onMounted(() => document.getElementById('header-search-close-btn').click())
return {
initialQuery
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment