@syncfusion/ej2-inputs 20.1.58 → 20.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +8 -2
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +8 -2
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/numerictextbox/numerictextbox.js +4 -1
- package/src/textbox/textbox.js +4 -1
|
@@ -906,10 +906,13 @@ var NumericTextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
906
906
|
var index = 0;
|
|
907
907
|
for (index; index < this.element.attributes.length; index++) {
|
|
908
908
|
var attributeName = this.element.attributes[index].nodeName;
|
|
909
|
-
if (attributeName !== 'id') {
|
|
909
|
+
if (attributeName !== 'id' && attributeName !== 'class') {
|
|
910
910
|
input.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
|
|
911
911
|
input.innerHTML = this.element.innerHTML;
|
|
912
912
|
}
|
|
913
|
+
else if (attributeName === 'class') {
|
|
914
|
+
input.setAttribute(attributeName, this.element.className.split(' ').filter(function (item) { return item.indexOf('ng-') !== 0; }).join(' '));
|
|
915
|
+
}
|
|
913
916
|
}
|
|
914
917
|
if (this.element.hasAttribute('name')) {
|
|
915
918
|
this.element.removeAttribute('name');
|
|
@@ -13179,13 +13182,16 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
13179
13182
|
var index = 0;
|
|
13180
13183
|
for (index; index < this.element.attributes.length; index++) {
|
|
13181
13184
|
var attributeName = this.element.attributes[index].nodeName;
|
|
13182
|
-
if (attributeName !== 'id') {
|
|
13185
|
+
if (attributeName !== 'id' && attributeName !== 'class') {
|
|
13183
13186
|
inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);
|
|
13184
13187
|
inputElement.innerHTML = this.element.innerHTML;
|
|
13185
13188
|
if (attributeName === 'name') {
|
|
13186
13189
|
this.element.removeAttribute('name');
|
|
13187
13190
|
}
|
|
13188
13191
|
}
|
|
13192
|
+
else if (attributeName === 'class') {
|
|
13193
|
+
inputElement.setAttribute(attributeName, this.element.className.split(' ').filter(function (item) { return item.indexOf('ng-') !== 0; }).join(' '));
|
|
13194
|
+
}
|
|
13189
13195
|
}
|
|
13190
13196
|
this.element.appendChild(inputElement);
|
|
13191
13197
|
this.element = inputElement;
|