fix: prevent duration field from opening when set to read only (#34517)
This commit is contained in:
parent
4914d6614d
commit
f02c0060ae
1 changed files with 1 additions and 0 deletions
|
|
@ -103,6 +103,7 @@ frappe.ui.form.ControlDuration = class ControlDuration extends frappe.ui.form.Co
|
|||
});
|
||||
|
||||
this.$input.on("focus", () => {
|
||||
if (this.df.read_only) return;
|
||||
this.$picker.show();
|
||||
let is_picker_set = this.is_duration_picker_set(this.inputs);
|
||||
if (!is_picker_set) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue