diff --git a/src/index.jsx b/src/index.jsx index 39c1505..b0eb317 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -161,7 +161,8 @@ const checkVisible = function checkVisible(component) { const visible = isOverflow ? checkOverflowVisible(component, parent) : checkNormalVisible(component); - if (visible) { + const hasPosition = node.offsetParent !== null; // check for display:none + if (hasPosition && visible) { // Avoid extra render if previously is visible if (!component.visible) { if (component.props.once) {