@syncfusion/ej2-inputs 20.3.47 → 20.3.49

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(() => {
86
+ Input.calculateWidth(args.element, parent);
87
+ }, 80);
85
88
  });
86
89
  args.element.addEventListener('blur', function () {
87
90
  const 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(() => {
96
+ Input.calculateWidth(args.element, parent);
97
+ }, 80);
92
98
  });
93
99
  args.element.addEventListener('input', () => {
94
100
  checkInputValue(floatType, args.element);
@@ -364,9 +370,7 @@ var Input;
364
370
  */
365
371
  function setValue$$1(value, element, floatLabelType, clearButton) {
366
372
  element.value = value;
367
- if (isNullOrUndefined(element.getAttribute('value'))) {
368
- calculateWidth(element, element.parentElement);
369
- }
373
+ calculateWidth(element, element.parentElement);
370
374
  if ((!isNullOrUndefined(floatLabelType)) && floatLabelType === 'Auto') {
371
375
  validateLabel(element, floatLabelType);
372
376
  }