@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
|
@@ -885,10 +885,13 @@ let NumericTextBox = class NumericTextBox extends Component {
|
|
|
885
885
|
let index = 0;
|
|
886
886
|
for (index; index < this.element.attributes.length; index++) {
|
|
887
887
|
const attributeName = this.element.attributes[index].nodeName;
|
|
888
|
-
if (attributeName !== 'id') {
|
|
888
|
+
if (attributeName !== 'id' && attributeName !== 'class') {
|
|
889
889
|
input.setAttribute(this.element.attributes[index].nodeName, this.element.attributes[index].nodeValue);
|
|
890
890
|
input.innerHTML = this.element.innerHTML;
|
|
891
891
|
}
|
|
892
|
+
else if (attributeName === 'class') {
|
|
893
|
+
input.setAttribute(attributeName, this.element.className.split(' ').filter((item) => item.indexOf('ng-') !== 0).join(' '));
|
|
894
|
+
}
|
|
892
895
|
}
|
|
893
896
|
if (this.element.hasAttribute('name')) {
|
|
894
897
|
this.element.removeAttribute('name');
|
|
@@ -12905,13 +12908,16 @@ let TextBox = class TextBox extends Component {
|
|
|
12905
12908
|
let index = 0;
|
|
12906
12909
|
for (index; index < this.element.attributes.length; index++) {
|
|
12907
12910
|
const attributeName = this.element.attributes[index].nodeName;
|
|
12908
|
-
if (attributeName !== 'id') {
|
|
12911
|
+
if (attributeName !== 'id' && attributeName !== 'class') {
|
|
12909
12912
|
inputElement.setAttribute(attributeName, this.element.attributes[index].nodeValue);
|
|
12910
12913
|
inputElement.innerHTML = this.element.innerHTML;
|
|
12911
12914
|
if (attributeName === 'name') {
|
|
12912
12915
|
this.element.removeAttribute('name');
|
|
12913
12916
|
}
|
|
12914
12917
|
}
|
|
12918
|
+
else if (attributeName === 'class') {
|
|
12919
|
+
inputElement.setAttribute(attributeName, this.element.className.split(' ').filter((item) => item.indexOf('ng-') !== 0).join(' '));
|
|
12920
|
+
}
|
|
12915
12921
|
}
|
|
12916
12922
|
this.element.appendChild(inputElement);
|
|
12917
12923
|
this.element = inputElement;
|