Skip to content

Commit f8f9934

Browse files
committed
Default table of contents to open on mobile
Closes #776 Closes #775
1 parent 8567bd4 commit f8f9934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/table-of-contents.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const withTableOfContents = Component => {
3333
}
3434

3535
export const Mobile = withTableOfContents(({items}) => {
36-
const {getDetailsProps, open} = useDetails({})
36+
const {getDetailsProps, open} = useDetails({defaultOpen: true})
3737
return (
3838
<Box sx={{display: ['block', null, 'none'], mb: 3}}>
3939
<Details {...getDetailsProps()}>

0 commit comments

Comments
 (0)