@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.
@@ -14172,6 +14172,13 @@ let TextBox = class TextBox extends Component {
14172
14172
  */
14173
14173
  addIcon(position, icons) {
14174
14174
  Input.addIcon(position, icons, this.textboxWrapper.container, this.respectiveElement, this.createElement);
14175
+ const container = this.textboxWrapper.container;
14176
+ const iconSpan = container.querySelector('span.e-icons');
14177
+ const label = container.querySelector('label');
14178
+ if (iconSpan && label) {
14179
+ const labelWidth = (this.element.parentElement.offsetWidth) - (iconSpan.offsetWidth);
14180
+ label.style.width = `${labelWidth}px`;
14181
+ }
14175
14182
  }
14176
14183
  /**
14177
14184
  * Gets the properties to be maintained in the persisted state.