mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-04 17:42:05 -04:00
Always show checked items in live search
If you’ve searched to select an item and then you want to perform an action on it it’s confusing when it goes away if you change your search. It should always be clear which items you’re performing an action on. This means that checked items should always be visible, no matter what your search term is.
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
|
||||
let content = $('.live-search-relevant', this).text() || $(this).text();
|
||||
|
||||
if ($(this).has(':checked').length) {
|
||||
$(this).show();
|
||||
return;
|
||||
}
|
||||
|
||||
if (query == '') {
|
||||
$(this).css('display', '');
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user