fix: disabled attribute for disabled checkboxes

This commit is contained in:
prssanna 2021-01-11 17:41:32 +05:30
parent fe9d598132
commit 368cc760e0

View file

@ -95,9 +95,9 @@ frappe.form.formatters = {
},
Check: function(value) {
if (value) {
return `<input type="checkbox" class="disabled-selected">`;
return `<input type="checkbox" class="disabled-selected" disabled>`;
} else {
return `<input type="checkbox" class="disabled-deselected">`;
return `<input type="checkbox" class="disabled-deselected" disabled>`;
}
},
Link: function(value, docfield, options, doc) {