fix: disabled checkbox should be disabled
(cherry picked from commit c7591d51c4)
This commit is contained in:
parent
fec6aa4411
commit
c2b13dac7b
1 changed files with 2 additions and 5 deletions
|
|
@ -97,11 +97,8 @@ frappe.form.formatters = {
|
|||
}
|
||||
},
|
||||
Check: function(value) {
|
||||
if (value) {
|
||||
return `<input type="checkbox" class="disabled-selected">`;
|
||||
} else {
|
||||
return `<input type="checkbox" class="disabled-deselected">`;
|
||||
}
|
||||
return `<input type="checkbox" disabled
|
||||
class="disabled-${value ? "selected" : "deselected"}">`;
|
||||
},
|
||||
Link: function(value, docfield, options, doc) {
|
||||
var doctype = docfield._options || docfield.options;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue