@syncfusion/ej2-inputs 20.3.47 → 20.3.50

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.
@@ -82,6 +82,9 @@ var Input;
82
82
  || parent.classList.contains('e-filled')) {
83
83
  parent.classList.add('e-input-focus');
84
84
  }
85
+ setTimeout(function () {
86
+ Input.calculateWidth(args.element, parent);
87
+ }, 80);
85
88
  });
86
89
  args.element.addEventListener('blur', function () {
87
90
  var parent = getParentNode(this);
@@ -89,6 +92,9 @@ var Input;
89
92
  || parent.classList.contains('e-filled')) {
90
93
  parent.classList.remove('e-input-focus');
91
94
  }
95
+ setTimeout(function () {
96
+ Input.calculateWidth(args.element, parent);
97
+ }, 80);
92
98
  });
93
99
  args.element.addEventListener('input', function () {
94
100
  checkInputValue(floatType, args.element);
@@ -366,9 +372,7 @@ var Input;
366
372
  */
367
373
  function setValue$$1(value, element, floatLabelType, clearButton) {
368
374
  element.value = value;
369
- if (isNullOrUndefined(element.getAttribute('value'))) {
370
- calculateWidth(element, element.parentElement);
371
- }
375
+ calculateWidth(element, element.parentElement);
372
376
  if ((!isNullOrUndefined(floatLabelType)) && floatLabelType === 'Auto') {
373
377
  validateLabel(element, floatLabelType);
374
378
  }
@@ -13591,6 +13595,12 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
13591
13595
  this.trigger('input', eventArgs);
13592
13596
  this.inputPreviousValue = this.respectiveElement.value;
13593
13597
  this.raiseChangeEvent(event, true);
13598
+ if (closest(this.element, 'form')) {
13599
+ var element = this.element;
13600
+ var keyupEvent = document.createEvent('KeyboardEvent');
13601
+ keyupEvent.initEvent('keyup', false, true);
13602
+ element.dispatchEvent(keyupEvent);
13603
+ }
13594
13604
  }
13595
13605
  };
13596
13606
  TextBox.prototype.unWireEvents = function () {