Moved .option-hidden to exist only in SELECTABLE_CLASSES as NON_SELECTABLE_CLASSES is used to re-show previously hidden elements

This commit is contained in:
Luke Bennett 2016-08-24 15:51:33 +01:00
parent 02591b0430
commit 831fc817a6
No known key found for this signature in database
GPG key ID: A738E9C68D3BF31A

View file

@ -117,7 +117,7 @@
}
});
} else {
return elements.show();
return elements.show().removeClass('option-hidden');
}
}
};
@ -190,9 +190,9 @@
currentIndex = -1;
NON_SELECTABLE_CLASSES = '.divider, .separator, .dropdown-header, .dropdown-menu-empty-link, .option-hidden';
NON_SELECTABLE_CLASSES = '.divider, .separator, .dropdown-header, .dropdown-menu-empty-link';
SELECTABLE_CLASSES = ".dropdown-content li:not(" + NON_SELECTABLE_CLASSES + ")";
SELECTABLE_CLASSES = ".dropdown-content li:not(" + NON_SELECTABLE_CLASSES + ", .option-hidden)";
CURSOR_SELECT_SCROLL_PADDING = 5