Fix rev. 21a69ce (disable input on before render)

This commit is contained in:
Julia Radzhabova
2023-10-27 22:44:13 +03:00
parent b134a39ae8
commit 9dd1ca8eac

View File

@ -290,7 +290,7 @@ define([
disabled = !!disabled;
this.disabled = disabled;
$(this.el).toggleClass('disabled', disabled);
if (this.rendered) {
if (this._input) {
disabled
? this._input.attr('disabled', true)
: this._input.removeAttr('disabled');
@ -801,7 +801,7 @@ define([
disabled = !!disabled;
this.disabled = disabled;
$(this.el).toggleClass('disabled', disabled);
if (this.rendered) {
if (this.cmpEl) {
var inputs = this.cmpEl.find('input').addBack().filter('input')
disabled
? inputs.attr('disabled', true)