You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce the screen size so that the facets sidemenu would get hidden. Open the facets side menu, then close the side menu. The search bar disappears both from the page header as well as from the right hand side menu that contains the side bar on smaller screens (actually it disappears as soon as you open the facets menu).
Expected behavior
The search bar should still be in the UI
Screenshots (if applicable)
The problem is that facet sidebar handler is on the top level of the searchapp layout
const [sidebarVisible, setSidebarVisible] = React.useState(false);
When you open the facet sidebar, the app rerenders, but the node where the search bar tries to portal itself to does not exist in the dom currently (as it is hidden on smaller screens).
The solution is to put the facet sidebar state below the searchbar, so it does not get rerendered when facet sidebar is toggled.
The text was updated successfully, but these errors were encountered:
Package version (if known):Latest
Describe the bug
Search bar disappears from the search app
Steps to Reproduce
Reduce the screen size so that the facets sidemenu would get hidden. Open the facets side menu, then close the side menu. The search bar disappears both from the page header as well as from the right hand side menu that contains the side bar on smaller screens (actually it disappears as soon as you open the facets menu).
Expected behavior
The search bar should still be in the UI
Screenshots (if applicable)
The problem is that facet sidebar handler is on the top level of the searchapp layout
const [sidebarVisible, setSidebarVisible] = React.useState(false);
When you open the facet sidebar, the app rerenders, but the node where the search bar tries to portal itself to does not exist in the dom currently (as it is hidden on smaller screens).
The solution is to put the facet sidebar state below the searchbar, so it does not get rerendered when facet sidebar is toggled.
The text was updated successfully, but these errors were encountered: