@syncfusion/ej2-inputs 29.1.39 → 29.2.5

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.
@@ -613,7 +613,10 @@ var Input;
613
613
  floatTextContent.children[0].textContent = placeholder;
614
614
  }
615
615
  else {
616
- parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = placeholder;
616
+ const floatText = parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0];
617
+ if (!isNullOrUndefined(floatText)) {
618
+ floatText.textContent = placeholder;
619
+ }
617
620
  }
618
621
  parentElement.classList.remove(CLASSNAMES.NOFLOATLABEL);
619
622
  element.removeAttribute('placeholder');
@@ -625,7 +628,10 @@ var Input;
625
628
  floatTextContent.children[0].textContent = '';
626
629
  }
627
630
  else {
628
- parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0].textContent = '';
631
+ const floatText = parentElement.getElementsByClassName(CLASSNAMES.FLOATTEXT)[0];
632
+ if (!isNullOrUndefined(floatText)) {
633
+ floatText.textContent = '';
634
+ }
629
635
  }
630
636
  }
631
637
  }
@@ -1350,7 +1356,7 @@ let NumericTextBox = class NumericTextBox extends Component {
1350
1356
  attributes(this.element, { 'aria-readonly': 'true' });
1351
1357
  }
1352
1358
  this.hiddenInput = (this.createElement('input', { attrs: { type: 'text',
1353
- 'validateHidden': 'true', 'aria-label': 'hidden', 'class': HIDDENELEMENT } }));
1359
+ 'data-validateHidden': 'true', 'aria-label': 'hidden', 'class': HIDDENELEMENT } }));
1354
1360
  this.inputName = this.inputName !== null ? this.inputName : this.element.id;
1355
1361
  this.element.removeAttribute('name');
1356
1362
  if (this.isAngular && this.angularTagName === 'EJS-NUMERICTEXTBOX' && this.cloneElement.id.length > 0) {
@@ -11825,6 +11831,9 @@ let ColorPicker = class ColorPicker extends Component {
11825
11831
  }
11826
11832
  if (!observedCloseArgs.cancel) {
11827
11833
  this.onPopupClose();
11834
+ if (args.event.type === 'keydown' && args.event.keyCode === 27) {
11835
+ this.splitBtn.element.focus();
11836
+ }
11828
11837
  }
11829
11838
  args.cancel = observedCloseArgs.cancel;
11830
11839
  callBackPromise.resolve(observedCloseArgs);