@vaadin/text-area 23.0.0-beta5 → 23.0.1
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/package.json +8 -8
- package/src/vaadin-text-area.js +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/text-area",
|
|
3
|
-
"version": "23.0.
|
|
3
|
+
"version": "23.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "23.0.
|
|
37
|
-
"@vaadin/field-base": "23.0.
|
|
38
|
-
"@vaadin/input-container": "23.0.
|
|
39
|
-
"@vaadin/vaadin-lumo-styles": "23.0.
|
|
40
|
-
"@vaadin/vaadin-material-styles": "23.0.
|
|
41
|
-
"@vaadin/vaadin-themable-mixin": "23.0.
|
|
36
|
+
"@vaadin/component-base": "^23.0.1",
|
|
37
|
+
"@vaadin/field-base": "^23.0.1",
|
|
38
|
+
"@vaadin/input-container": "^23.0.1",
|
|
39
|
+
"@vaadin/vaadin-lumo-styles": "^23.0.1",
|
|
40
|
+
"@vaadin/vaadin-material-styles": "^23.0.1",
|
|
41
|
+
"@vaadin/vaadin-themable-mixin": "^23.0.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@esm-bundle/chai": "^4.3.4",
|
|
45
45
|
"@vaadin/testing-helpers": "^0.3.2",
|
|
46
46
|
"sinon": "^9.2.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "05fcc6daa21325753cf528c9c1072ccd8dd1e52e"
|
|
49
49
|
}
|
package/src/vaadin-text-area.js
CHANGED
|
@@ -205,9 +205,13 @@ export class TextArea extends ResizeMixin(PatternMixin(InputFieldMixin(ThemableM
|
|
|
205
205
|
// event, scrolling manually and then synchronously updating the scroll position CSS variable
|
|
206
206
|
// allows us to avoid some jumpy behavior that would occur on wheel otherwise.
|
|
207
207
|
this._inputField.addEventListener('wheel', (e) => {
|
|
208
|
-
|
|
208
|
+
const scrollTopBefore = this._inputField.scrollTop;
|
|
209
209
|
this._inputField.scrollTop += e.deltaY;
|
|
210
|
-
|
|
210
|
+
|
|
211
|
+
if (scrollTopBefore !== this._inputField.scrollTop) {
|
|
212
|
+
e.preventDefault();
|
|
213
|
+
this.__scrollPositionUpdated();
|
|
214
|
+
}
|
|
211
215
|
});
|
|
212
216
|
|
|
213
217
|
this._updateHeight();
|