From 62a727c041f4b8d8154698c9751fbe1ee2c48980 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 16 Mar 2018 00:37:08 +0100 Subject: [PATCH] Fix search (#645) --- src/theme/searcher/searcher.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/theme/searcher/searcher.js b/src/theme/searcher/searcher.js index e9c5cdd582..4bd27e313c 100644 --- a/src/theme/searcher/searcher.js +++ b/src/theme/searcher/searcher.js @@ -351,8 +351,10 @@ window.search = window.search || {}; function showSearch(yes) { if (yes) { searchbar_outer.style.display = 'block'; + content.style.display = 'none'; searchicon.setAttribute('aria-expanded', 'true'); } else { + content.style.display = 'block'; searchbar_outer.style.display = 'none'; searchresults_outer.style.display = 'none'; searchbar.value = ''; @@ -364,8 +366,10 @@ window.search = window.search || {}; function showResults(yes) { if (yes) { searchbar_outer.style.display = 'block'; + content.style.display = 'none'; searchresults_outer.style.display = 'block'; } else { + content.style.display = 'block'; searchresults_outer.style.display = 'none'; } }