Skip to content

Commit

Permalink
bump 1.4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
benjycui committed Aug 23, 2017
1 parent 759f8da commit 4758644
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "rc-form",
"version": "1.4.6",
"version": "1.4.7",
"description": "React High Order Form Component",
"keywords": [
"react",
Expand Down
7 changes: 5 additions & 2 deletions src/createDOMForm.js
Expand Up @@ -38,8 +38,11 @@ function getScrollableContainer(n) {
while ((nodeName = node.nodeName.toLowerCase()) !== 'body') {
const overflowY = computedStyle(node, 'overflowY');
// https://stackoverflow.com/a/36900407/3040605
if (node !== n && (overflowY === 'auto' || overflowY === 'scroll') &&
node.scrollHeight > node.clientHeight) {
if (
node !== n &&
(overflowY === 'auto' || overflowY === 'scroll') &&
node.scrollHeight > node.clientHeight
) {
return node;
}
node = node.parentNode;
Expand Down

0 comments on commit 4758644

Please sign in to comment.