Merge pull request #36252 from trufurs/field-group-input

fix: Prevent input fields from being cleared while typing in dialogs
This commit is contained in:
Ejaaz Khan 2026-01-23 12:21:13 +05:30 committed by GitHub
commit 5c01f2aa5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}
});
}
}