diff --git a/packages/core/src/components/section/section.tsx b/packages/core/src/components/section/section.tsx index dda4bfb3bb..643adf0d05 100644 --- a/packages/core/src/components/section/section.tsx +++ b/packages/core/src/components/section/section.tsx @@ -21,7 +21,7 @@ import { ChevronDown, ChevronUp, type IconName } from "@blueprintjs/icons"; import { Classes, Elevation, Utils } from "../../common"; import { DISPLAYNAME_PREFIX, type HTMLDivProps, type MaybeElement, type Props } from "../../common/props"; -import { uniqueId } from "../../common/utils"; +import { clickElementOnKeyPress, uniqueId } from "../../common/utils"; import { Card } from "../card/card"; import { Collapse, type CollapseProps } from "../collapse/collapse"; import { H6 } from "../html/html"; @@ -177,10 +177,6 @@ export const Section: React.FC = React.forwardRef((props, ref) => > {title && (
= React.forwardRef((props, ref) => {isHeaderRightContainerVisible && (
{rightElement} - {collapsible && - (isCollapsed ? ( - - ) : ( - - ))} + {collapsible && ( + + {isCollapsed ? : } + + )}
)}