2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: Read Only prop override

This commit is contained in:
Faris Ansari 2019-12-23 19:02:49 +05:30
parent bef259bd84
commit 7dd6dbc9af

View File

@ -67,7 +67,10 @@ export default {
return this.placeholder || this.df.placeholder; return this.placeholder || this.df.placeholder;
}, },
isReadOnly() { isReadOnly() {
return this.readOnly || this.df.readOnly; if (this.readOnly != null) {
return this.readOnly;
}
return this.df.readOnly;
} }
}, },
methods: { methods: {