@syncfusion/ej2-inputs 29.1.34 → 29.1.38

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.
@@ -14616,6 +14616,9 @@ let TextArea = class TextArea extends Component {
14616
14616
  }
14617
14617
  this.element.value = this.element.defaultValue;
14618
14618
  this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);
14619
+ if (this.textareaWrapper.container.style.width.includes('%')) {
14620
+ EventHandler.remove(this.element, 'mousemove', this.onMouseMove);
14621
+ }
14619
14622
  this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);
14620
14623
  if (!isNullOrUndefined(this.textareaWrapper)) {
14621
14624
  this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);
@@ -14823,14 +14826,16 @@ let TextArea = class TextArea extends Component {
14823
14826
  */
14824
14827
  setWrapperWidth() {
14825
14828
  if (this.enabled && ((this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') || (this.cols || this.element.getAttribute('cols')))) {
14826
- if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical') {
14827
- if (this.textareaWrapper.container.style.width) {
14828
- this.setElementWidth(this.textareaWrapper.container.style.width);
14829
- this.textareaWrapper.container.style.width = '';
14830
- this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14831
- }
14829
+ if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' && !this.textareaWrapper.container.style.width.includes('%')) {
14830
+ this.setElementWidth(this.textareaWrapper.container.style.width);
14831
+ }
14832
+ if (!this.textareaWrapper.container.style.width.includes('%')) {
14833
+ this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14834
+ this.textareaWrapper.container.style.width = '';
14835
+ }
14836
+ if (this.textareaWrapper.container.style.width.includes('%')) {
14837
+ EventHandler.add(this.element, 'mousemove', this.onMouseMove, this);
14832
14838
  }
14833
- this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14834
14839
  }
14835
14840
  else {
14836
14841
  if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {
@@ -14838,6 +14843,17 @@ let TextArea = class TextArea extends Component {
14838
14843
  }
14839
14844
  }
14840
14845
  }
14846
+ onMouseMove() {
14847
+ if (this.textareaWrapper.container.style.width !== 'auto') {
14848
+ const initialWidth = this.element.style.width;
14849
+ setTimeout(() => {
14850
+ const currentWidth = this.element.style.width;
14851
+ if (initialWidth !== currentWidth) {
14852
+ this.textareaWrapper.container.style.width = 'auto';
14853
+ }
14854
+ }, 5);
14855
+ }
14856
+ }
14841
14857
  resetForm() {
14842
14858
  if (this.isAngular) {
14843
14859
  this.resetValue('');