From 8e6003afb29f619d2d55c30d2e50c963868e844c Mon Sep 17 00:00:00 2001 From: KerollesFathy Date: Thu, 23 Apr 2026 20:09:28 +0000 Subject: [PATCH] fix(multi_select_dialog): refresh results on Link field selection without requiring blur --- .../public/js/frappe/form/multi_select_dialog.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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()) {