fix: remove disabled attribute from disabled checkbox

This commit is contained in:
prssanna 2021-01-12 13:43:27 +05:30
parent 0ac0bfcb60
commit 040923ef4b
2 changed files with 4 additions and 2 deletions

View file

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

View file

@ -54,6 +54,7 @@ input[type="checkbox"] {
box-sizing: border-box;
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
border-radius: 4px;
pointer-events:none
}
&.disabled-selected:before {
@ -63,6 +64,7 @@ input[type="checkbox"] {
box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.1);
border-radius: 4px;
line-height: 10px;
pointer-events:none
}
}