Fix readonly checkbox not working

This commit is contained in:
Hadi Nategh
2020-05-13 12:00:06 +02:00
parent 0748fba70f
commit f23b5aee82
2 changed files with 2 additions and 0 deletions

View File

@ -128,6 +128,7 @@ var et2_checkbox = /** @class */ (function (_super) {
*/
et2_checkbox.prototype.set_readonly = function (_ro) {
jQuery(this.getDOMNode()).attr('disabled', _ro);
this.input.prop('disabled', _ro);
};
/**
* Override default to return unchecked value