fix: web form refresh_dependency on change

added refresh_dependency when value is changed in web form.
This commit is contained in:
Maharshi Patel 2023-07-11 14:03:41 +05:30
parent 391638ad28
commit 88450e6fdc

View file

@ -44,6 +44,7 @@ export default class WebForm extends frappe.ui.FieldGroup {
let field = this.fields_dict[fieldname];
field.df.change = () => {
handler(field, field.value);
this.refresh_dependency();
this.make_form_dirty();
};
}
@ -53,6 +54,7 @@ export default class WebForm extends frappe.ui.FieldGroup {
this.fields.forEach((field) => {
if (!field.change) {
field.change = () => {
this.refresh_dependency();
this.make_form_dirty();
};
}