Skip to content

Commit

Permalink
fix: make sure we don't enable scroll by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Feb 6, 2020
1 parent 81aae87 commit 716f5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export class Modalize<FlatListItem = any, SectionListItem = any> extends React.C
if (this.beginScrollYValue === 0) {
const modalPosition = Boolean(destSnapPoint <= 0) ? 'top' : 'initial';

if (modalPosition === 'top') {
if (!adjustToContentHeight && modalPosition === 'top') {
this.setState({ disableScroll: false });
}

Expand Down

0 comments on commit 716f5ab

Please sign in to comment.