Skip to content

Commit

Permalink
feat(overflow): add overflow (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
lluchkaa committed Aug 13, 2020
1 parent da0ba94 commit f08e75b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Expand Up @@ -116,6 +116,7 @@ type Props = {
onCloseEnd?: () => void
callbackThreshold?: number
borderRadius?: number
overflow?: 'visible' | 'hidden'
}

type State = {
Expand Down Expand Up @@ -845,7 +846,7 @@ export default class BottomSheetBehavior extends React.Component<Props, State> {
style={
this.props.enabledInnerScrolling && {
height: this.state.initSnap - this.state.heightOfHeader,
overflow: 'hidden',
overflow: this.props.overflow || 'hidden',
borderTopLeftRadius: borderRadius,
borderTopRightRadius: borderRadius,
}
Expand Down

0 comments on commit f08e75b

Please sign in to comment.