diff --git a/frappe/public/js/frappe/form/multi_select_dialog.js b/frappe/public/js/frappe/form/multi_select_dialog.js index aa7d0239d3..bef75dae90 100644 --- a/frappe/public/js/frappe/form/multi_select_dialog.js +++ b/frappe/public/js/frappe/form/multi_select_dialog.js @@ -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()) {