Merge pull request #12758 from prssanna/form-input-focus
fix: only focus on first input if form is new
This commit is contained in:
commit
906790ec8a
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
return this.script_manager.trigger("onload_post_render");
|
||||
}
|
||||
},
|
||||
() => this.focus_on_first_input(),
|
||||
() => this.is_new() && this.focus_on_first_input(),
|
||||
() => this.run_after_load_hook(),
|
||||
() => this.dashboard.after_refresh()
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue