Skip to content

Commit f08e75b

Browse files
authored
feat(overflow): add overflow (#255)
1 parent da0ba94 commit f08e75b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ type Props = {
116116
onCloseEnd?: () => void
117117
callbackThreshold?: number
118118
borderRadius?: number
119+
overflow?: 'visible' | 'hidden'
119120
}
120121

121122
type State = {
@@ -845,7 +846,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
845846
style={
846847
this.props.enabledInnerScrolling && {
847848
height: this.state.initSnap - this.state.heightOfHeader,
848-
overflow: 'hidden',
849+
overflow: this.props.overflow || 'hidden',
849850
borderTopLeftRadius: borderRadius,
850851
borderTopRightRadius: borderRadius,
851852
}

0 commit comments

Comments
 (0)