diff --git a/src/utils.js b/src/utils.js index f2c00eaf4..af2423ef7 100644 --- a/src/utils.js +++ b/src/utils.js @@ -655,6 +655,9 @@ } u.isVisible = function (el) { + if (u.hasClass('hidden', el)) { + return false; + } // XXX: Taken from jQuery's "visible" implementation return el.offsetWidth > 0 || el.offsetHeight > 0 || el.getClientRects().length > 0; };