fix: prevent input fields from being cleared while typing in dialogs by limiting refresh_dependency calls
This commit is contained in:
parent
d80b23ae19
commit
d217f5e0f8
1 changed files with 7 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue