fix(multi_select_dialog): refresh results on Link field selection without requiring blur

This commit is contained in:
KerollesFathy 2026-04-23 20:09:28 +00:00
parent 25c95c7f9d
commit 8e6003afb2

View file

@ -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()) {