Skip to content

Commit c36fa30

Browse files
committed
fix(editors): fixing faulty warning removal
1 parent bbb6260 commit c36fa30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/js/modules/infragistics.ui.editors.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -990,8 +990,8 @@
990990
//Default value we don't do anything unless we implement setOption related to that.
991991
this._editorInput.prop("readonly", false);
992992
this._valueInput.prop("readonly", false);
993-
this._editorInput[0].removeAttribute("disabled");
994-
this._valueInput[0].removeAttribute("disabled");
993+
this._editorInput.prop("disabled", false);
994+
this._valueInput.prop("disabled", false);
995995
this._editorContainer.removeClass(this.css.disabled);
996996
this._attachEvents();
997997
},
@@ -1001,8 +1001,8 @@
10011001
this._valueInput.prop("disabled", true);
10021002
this._disableEditor(true);
10031003
} else {
1004-
this._editorInput[0].removeAttribute("disabled");
1005-
this._valueInput[0].removeAttribute("disabled");
1004+
this._editorInput.prop("disabled", false);
1005+
this._valueInput.prop("disabled", false);
10061006
if (!this.options.readOnly) {
10071007
this._setEditableMode();
10081008
}
@@ -2241,7 +2241,7 @@
22412241
if (target && target.attr("disabled")) {
22422242
target.removeClass(this.css.disabled);
22432243
target[0].removeAttribute("disabled");
2244-
target[0].removeAttribute("disabled");
2244+
target.prop("disabled", false);
22452245
this._attachButtonsEvents(type, target);
22462246
}
22472247
},

0 commit comments

Comments
 (0)