Skip to content

Commit

Permalink
add missing defaults to Collapsible* components
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 committed Oct 22, 2024
1 parent d2e58dd commit 3df4e29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const CollapsibleContent = React.forwardRef(function CollapsibleContent(
props: CollapsibleContent.Props,
forwardedRef: React.ForwardedRef<HTMLButtonElement>,
) {
const { className, htmlHidden, render, ...otherProps } = props;
const { className, htmlHidden = 'hidden', render, ...otherProps } = props;

const { animated, mounted, open, contentId, setContentId, setMounted, setOpen, ownerState } =
useCollapsibleContext();
Expand Down
6 changes: 3 additions & 3 deletions packages/mui-base/src/Collapsible/Root/CollapsibleRoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const CollapsibleRoot = React.forwardRef(function CollapsibleRoot(
forwardedRef: React.ForwardedRef<HTMLDivElement>,
) {
const {
animated,
animated = true,
children,
className,
defaultOpen,
disabled,
defaultOpen = true,
disabled = false,
onOpenChange,
open,
render: renderProp,
Expand Down

0 comments on commit 3df4e29

Please sign in to comment.