fix(form): hide sidebar element when sidebar is hidden

This commit is contained in:
Ejaaz Khan 2026-01-28 15:08:02 +05:30
parent 76770e1494
commit 0f032bd7ca

View file

@ -609,6 +609,8 @@ frappe.ui.form.Form = class FrappeForm {
toolbar: this.toolbar,
});
this.sidebar.make();
} else {
this.page.sidebar.hide();
}
// clear layout message