Skip to content

Commit

Permalink
fix: assume headerHeight is 0 if HeaderComponent isn't provided (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreialecu authored Feb 15, 2021
1 parent 6227bf0 commit 418c917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const Container = React.forwardRef<CollapsibleRef, CollapsibleProps>(
initialTabBarHeight
)
const [headerHeight, setHeaderHeight] = React.useState<number | undefined>(
initialHeaderHeight
!HeaderComponent ? 0 : initialHeaderHeight
)

const contentInset = React.useMemo(
Expand Down

0 comments on commit 418c917

Please sign in to comment.