@syncfusion/ej2-inputs 29.1.34 → 29.1.39

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.
@@ -1813,7 +1813,9 @@ let NumericTextBox = class NumericTextBox extends Component {
1813
1813
  }
1814
1814
  }
1815
1815
  this.inputValue = value;
1816
- this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);
1816
+ if (!(this.isVue && this.element && this.element.hasAttribute('modelvalue') && this.isDynamicChange)) {
1817
+ this.changeValue(value === null || isNaN(value) ? null : this.strictMode ? this.trimValue(value) : value);
1818
+ }
1817
1819
  /* istanbul ignore next */
1818
1820
  if (!this.isDynamicChange) {
1819
1821
  this.raiseChangeEvent(event);
@@ -14616,6 +14618,9 @@ let TextArea = class TextArea extends Component {
14616
14618
  }
14617
14619
  this.element.value = this.element.defaultValue;
14618
14620
  this.element.classList.remove('e-input', RESIZE_X, RESIZE_Y, RESIZE_XY, RESIZE_NONE);
14621
+ if (this.textareaWrapper.container.style.width.includes('%')) {
14622
+ EventHandler.remove(this.element, 'mousemove', this.onMouseMove);
14623
+ }
14619
14624
  this.removeAttributes(['aria-disabled', 'aria-readonly', 'aria-labelledby', 'aria-multiline']);
14620
14625
  if (!isNullOrUndefined(this.textareaWrapper)) {
14621
14626
  this.textareaWrapper.container.insertAdjacentElement('afterend', this.element);
@@ -14823,14 +14828,16 @@ let TextArea = class TextArea extends Component {
14823
14828
  */
14824
14829
  setWrapperWidth() {
14825
14830
  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
- }
14831
+ if (this.resizeMode !== 'None' && this.resizeMode !== 'Vertical' && !this.textareaWrapper.container.style.width.includes('%')) {
14832
+ this.setElementWidth(this.textareaWrapper.container.style.width);
14833
+ }
14834
+ if (!this.textareaWrapper.container.style.width.includes('%')) {
14835
+ this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14836
+ this.textareaWrapper.container.style.width = '';
14837
+ }
14838
+ if (this.textareaWrapper.container.style.width.includes('%')) {
14839
+ EventHandler.add(this.element, 'mousemove', this.onMouseMove, this);
14832
14840
  }
14833
- this.textareaWrapper.container.classList.add(AUTO_WIDTH);
14834
14841
  }
14835
14842
  else {
14836
14843
  if (this.textareaWrapper.container.classList.contains(AUTO_WIDTH)) {
@@ -14838,6 +14845,17 @@ let TextArea = class TextArea extends Component {
14838
14845
  }
14839
14846
  }
14840
14847
  }
14848
+ onMouseMove() {
14849
+ if (this.textareaWrapper.container.style.width !== 'auto') {
14850
+ const initialWidth = this.element.style.width;
14851
+ setTimeout(() => {
14852
+ const currentWidth = this.element.style.width;
14853
+ if (initialWidth !== currentWidth) {
14854
+ this.textareaWrapper.container.style.width = 'auto';
14855
+ }
14856
+ }, 5);
14857
+ }
14858
+ }
14841
14859
  resetForm() {
14842
14860
  if (this.isAngular) {
14843
14861
  this.resetValue('');