Merge pull request #12745 from hasnain2808/multiselect
fix: change z-index even when list is empty
This commit is contained in:
commit
09b9c9e2f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue