Skip to content

Commit

Permalink
Merge pull request twobin#106 from Sean-Lan/fix/twobin#105
Browse files Browse the repository at this point in the history
fix issue#105: scrollParent utility may enter infinite loop
  • Loading branch information
Lida Wang authored Jun 24, 2017
2 parents 0fb5a45 + 3af2417 commit 3182f14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/scrollParent.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default (node) => {
const overflowY = style['overflow-y'];

if (position === 'static' && excludeStaticParent) {
parent = parent.parentNode;
continue;
}

Expand Down

0 comments on commit 3182f14

Please sign in to comment.