Skip to content

Commit 44d66fa

Browse files
Copilotkdinev
andcommitted
Replace deprecated removeAttr() with prop() for boolean attributes
Co-authored-by: kdinev <1472513+kdinev@users.noreply.github.com>
1 parent 1547570 commit 44d66fa

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/js/modules/infragistics.ui.combo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7653,7 +7653,7 @@
76537653
if (this.options.mode !== "editable") {
76547654
// Disable editing and selection for non-editable modes
76557655
this.element
7656-
.removeAttr("readonly")
7656+
.prop("readonly", false)
76577657
.removeAttr("unselectable")
76587658
.removeClass(this.css.unselectable);
76597659
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@
580580
}
581581
}
582582
if (readOnly) {
583-
element.removeAttr("readonly");
583+
element.prop("readonly", false);
584584

585585
// If we have 'readOnly' attribute, then it is applied only when 'readOnly' options is not defined.
586586
if (this._definedOptions === undefined || this._definedOptions.readOnly === undefined) {
@@ -11864,7 +11864,7 @@
1186411864
this._super(this.element);
1186511865

1186611866
if (checked) {
11867-
this.element.removeAttr("checked");
11867+
this.element.prop("checked", false);
1186811868
this.options.checked = true;
1186911869
}
1187011870
},

0 commit comments

Comments
 (0)