@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.
@@ -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;