fix(multi_select_dialog): refresh results on Link field selection without requiring blur
This commit is contained in:
parent
25c95c7f9d
commit
8e6003afb2
1 changed files with 14 additions and 0 deletions
|
|
@ -361,6 +361,20 @@ frappe.ui.form.MultiSelectDialog = class MultiSelectDialog {
|
|||
});
|
||||
});
|
||||
|
||||
const refresh_results = frappe.utils.debounce(() => {
|
||||
frappe.flags.auto_scroll = false;
|
||||
if (me.is_child_selection_enabled()) {
|
||||
me.show_child_results();
|
||||
} else {
|
||||
me.empty_list();
|
||||
me.get_results();
|
||||
}
|
||||
}, 300);
|
||||
|
||||
this.$parent
|
||||
.find(".input-with-feedback")
|
||||
.on("awesomplete-selectcomplete", refresh_results);
|
||||
|
||||
this.$parent.find(".input-with-feedback").on("change", () => {
|
||||
frappe.flags.auto_scroll = false;
|
||||
if (this.is_child_selection_enabled()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue