@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(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
  }