@vaadin/vaadin-text-field 2.9.1 → 2.9.2

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 CHANGED
@@ -10,7 +10,7 @@
10
10
  "repository": "vaadin/vaadin-text-field",
11
11
  "homepage": "https://vaadin.com/components",
12
12
  "name": "@vaadin/vaadin-text-field",
13
- "version": "2.9.1",
13
+ "version": "2.9.2",
14
14
  "main": "vaadin-text-field.js",
15
15
  "author": "Vaadin Ltd",
16
16
  "license": "Apache-2.0",
@@ -63,7 +63,7 @@ class EmailFieldElement extends TextFieldElement {
63
63
  }
64
64
 
65
65
  static get version() {
66
- return '2.9.1';
66
+ return '2.9.2';
67
67
  }
68
68
 
69
69
  static get template() {
@@ -32,7 +32,7 @@ class IntegerFieldElement extends NumberFieldElement {
32
32
  }
33
33
 
34
34
  static get version() {
35
- return '2.9.1';
35
+ return '2.9.2';
36
36
  }
37
37
 
38
38
  static get properties() {
@@ -105,7 +105,7 @@ class NumberFieldElement extends TextFieldElement {
105
105
  }
106
106
 
107
107
  static get version() {
108
- return '2.9.1';
108
+ return '2.9.2';
109
109
  }
110
110
 
111
111
  static get properties() {
@@ -76,7 +76,7 @@ class PasswordFieldElement extends TextFieldElement {
76
76
  }
77
77
 
78
78
  static get version() {
79
- return '2.9.1';
79
+ return '2.9.2';
80
80
  }
81
81
 
82
82
  static get properties() {
@@ -149,7 +149,7 @@ class TextAreaElement extends
149
149
  }
150
150
 
151
151
  static get version() {
152
- return '2.9.1';
152
+ return '2.9.2';
153
153
  }
154
154
 
155
155
  static get properties() {
@@ -181,9 +181,13 @@ class TextAreaElement extends
181
181
  // event, scrolling manually and then synchronously updating the scroll position CSS variable
182
182
  // allows us to avoid some jumpy behavior that would occur on wheel otherwise.
183
183
  this._inputField.addEventListener('wheel', (e) => {
184
- e.preventDefault();
184
+ const scrollTopBefore = this._inputField.scrollTop;
185
185
  this._inputField.scrollTop += e.deltaY;
186
- this.__scrollPositionUpdated();
186
+
187
+ if (scrollTopBefore !== this._inputField.scrollTop) {
188
+ e.preventDefault();
189
+ this.__scrollPositionUpdated();
190
+ }
187
191
  });
188
192
 
189
193
  this.__scrollPositionUpdated();
@@ -116,7 +116,7 @@ class TextFieldElement extends
116
116
  }
117
117
 
118
118
  static get version() {
119
- return '2.9.1';
119
+ return '2.9.2';
120
120
  }
121
121
 
122
122
  static get properties() {