fix(UX): freeze screen while navigating (#33652)

Also works as giving some feedback while changing the page.
This commit is contained in:
Ankush Menat 2025-08-15 09:14:22 +05:30 committed by GitHub
parent 354960fc16
commit 4c3c980bac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1340,12 +1340,14 @@ frappe.ui.form.Form = class FrappeForm {
prev,
};
frappe.call("frappe.desk.form.utils.get_next", args).then((r) => {
if (r.message) {
frappe.set_route("Form", this.doctype, r.message);
this.focus_on_first_input();
}
});
frappe
.call({ method: "frappe.desk.form.utils.get_next", args, freeze: true })
.then((r) => {
if (r.message) {
frappe.set_route("Form", this.doctype, r.message);
this.focus_on_first_input();
}
});
}
rename_doc() {