@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.
- package/dist/ej2-inputs.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js +2 -2
- package/dist/ej2-inputs.umd.min.js.map +1 -1
- package/dist/es6/ej2-inputs.es2015.js +23 -7
- package/dist/es6/ej2-inputs.es2015.js.map +1 -1
- package/dist/es6/ej2-inputs.es5.js +24 -7
- package/dist/es6/ej2-inputs.es5.js.map +1 -1
- package/dist/global/ej2-inputs.min.js +2 -2
- package/dist/global/ej2-inputs.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +24 -16
- package/src/textarea/textarea.d.ts +1 -0
- package/src/textarea/textarea.js +24 -7
|
@@ -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
|
-
|
|
14828
|
-
|
|
14829
|
-
|
|
14830
|
-
|
|
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('');
|