1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +02:00
This commit is contained in:
Mark Otto
2016-11-26 00:40:17 -08:00
parent 3606c5b9c5
commit e953d5d4f0
14 changed files with 48 additions and 26 deletions

View File

@@ -1549,11 +1549,7 @@ var Dropdown = function ($) {
return;
}
var items = $.makeArray($(Selector.VISIBLE_ITEMS));
items = items.filter(function (item) {
return item.offsetWidth || item.offsetHeight;
});
var items = $(parent).find(Selector.VISIBLE_ITEMS).get();
if (!items.length) {
return;

File diff suppressed because one or more lines are too long