mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
Fixes to search modal (#3577)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Small fixes to search modal
|
||||
@@ -150,7 +150,7 @@ export function SearchContainer(props: SearchContainerProps) {
|
||||
<Popover
|
||||
content={
|
||||
// Only show content if there's a query or Ask is enabled
|
||||
state?.query || withSearchAI ? (
|
||||
state?.query || withAI ? (
|
||||
<React.Suspense fallback={null}>
|
||||
{isMultiVariants && !showAsk ? (
|
||||
<SearchScopeToggle spaceTitle={spaceTitle} />
|
||||
@@ -170,7 +170,7 @@ export function SearchContainer(props: SearchContainerProps) {
|
||||
rootProps={{
|
||||
open: state?.open ?? false,
|
||||
onOpenChange: (open) => {
|
||||
setSearchState((prev) => (prev ? { ...prev, open } : null));
|
||||
open ? onOpen() : onClose();
|
||||
},
|
||||
modal: isMobile,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user