fix: Revert "fix: refresh fields after changing form to read-only (#26439)"

This reverts commit cc8c0f917c.

This also reverts the attemped fix: #26983

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-07-04 17:28:48 +05:30
parent b91612bfa3
commit 216015f49e
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -671,7 +671,7 @@ frappe.ui.form.Form = class FrappeForm {
}
refresh_fields() {
this?.layout?.refresh(this.doc);
this.layout.refresh(this.doc);
this.layout.primary_button = this.$wrapper.find(".btn-primary");
// cleanup activities after refresh
@ -1843,7 +1843,6 @@ frappe.ui.form.Form = class FrappeForm {
email: p.email,
};
});
this.refresh_fields();
}
trigger(event, doctype, docname) {