use offsetHeight to check element visibility
This commit is contained in:
parent
5d0c33c1a6
commit
2286448b68
1 changed files with 1 additions and 0 deletions
|
@ -142,6 +142,7 @@ export default class Follow {
|
|||
return style.display !== 'none' &&
|
||||
style.visibility !== 'hidden' &&
|
||||
element.type !== 'hidden' &&
|
||||
element.offsetHeight > 0 &&
|
||||
Follow.inWindow(window, element);
|
||||
});
|
||||
return filtered;
|
||||
|
|
Reference in a new issue