diff --git a/src/search-manager/FilterByBlockType.tsx b/src/search-manager/FilterByBlockType.tsx index dc65c7ca86..f592b713ae 100644 --- a/src/search-manager/FilterByBlockType.tsx +++ b/src/search-manager/FilterByBlockType.tsx @@ -81,16 +81,17 @@ const FilterByBlockType: React.FC> = () => { { Object.entries(sortedBlockTypes).map(([blockType, count]) => ( - - {' '} - {count} - + )) } { diff --git a/src/search-manager/FilterByTags.tsx b/src/search-manager/FilterByTags.tsx index 476a07ed35..8535ab4485 100644 --- a/src/search-manager/FilterByTags.tsx +++ b/src/search-manager/FilterByTags.tsx @@ -49,38 +49,43 @@ const TagMenuItem: React.FC<{ const randomNumber = React.useMemo(() => Math.floor(Math.random() * 1000), []); const checkboxId = tagPath.replace(/[\W]/g, '_') + randomNumber; + const expandChildrenClick = React.useCallback((e) => { + e.preventDefault(); + onToggleChildren?.(tagPath); + }, [onToggleChildren, tagPath]); + return ( -
- - - { - hasChildren - ? ( - onToggleChildren?.(tagPath)} - variant="primary" - size="sm" - /> - ) : null - } -
+ ); }; @@ -125,7 +130,6 @@ const TagOptions: React.FC<{ return (