fix: prevent input fields from being cleared while typing in dialogs by limiting refresh_dependency calls

This commit is contained in:
trufurs 2026-01-23 06:00:23 +00:00
parent d80b23ae19
commit d217f5e0f8

View file

@ -49,12 +49,17 @@ frappe.ui.FieldGroup = class FieldGroup extends frappe.ui.form.Layout {
$(this.wrapper)
.find("input, select")
.on(
"change input awesomplete-selectcomplete",
"change awesomplete-selectcomplete",
frappe.utils.debounce(() => {
this.dirty = true;
me.refresh_dependency();
}, 100)
);
)
.on("input", () => {
if (!this.dirty) {
this.dirty = true;
}
});
}
}