mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 05:30:15 +08:00
Fix rev. 21a69ce (disable input on before render)
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user