fix: web form refresh_dependency on change
added refresh_dependency when value is changed in web form.
This commit is contained in:
parent
391638ad28
commit
88450e6fdc
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue