@syncfusion/ej2-inputs 31.1.20 → 31.1.21

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.
@@ -14451,6 +14451,13 @@ var TextBox = /** @__PURE__ @class */ (function (_super) {
14451
14451
  */
14452
14452
  TextBox.prototype.addIcon = function (position, icons) {
14453
14453
  Input.addIcon(position, icons, this.textboxWrapper.container, this.respectiveElement, this.createElement);
14454
+ var container = this.textboxWrapper.container;
14455
+ var iconSpan = container.querySelector('span.e-icons');
14456
+ var label = container.querySelector('label');
14457
+ if (iconSpan && label) {
14458
+ var labelWidth = (this.element.parentElement.offsetWidth) - (iconSpan.offsetWidth);
14459
+ label.style.width = labelWidth + "px";
14460
+ }
14454
14461
  };
14455
14462
  /**
14456
14463
  * Gets the properties to be maintained in the persisted state.