Merge pull request #12745 from hasnain2808/multiselect

fix: change z-index even when list is empty
This commit is contained in:
mergify[bot] 2021-03-31 13:43:40 +00:00 committed by GitHub
commit 09b9c9e2f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -251,7 +251,6 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
head ? $row.addClass('list-item--head')
: $row = $(`<div class="list-item-container" data-item-name="${result.name}"></div>`).append($row);
$(".modal-dialog .list-item--head").css("z-index", 0);
return $row;
}
@ -264,6 +263,7 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
this.empty_list();
}
more_btn.hide();
$(".modal-dialog .list-item--head").css("z-index", 0);
if (results.length === 0) return;
if (more) more_btn.show();