@vaadin/text-area
Advanced tools
Comparing version 23.1.1 to 23.2.0-alpha1
{ | ||
"name": "@vaadin/text-area", | ||
"version": "23.1.1", | ||
"version": "23.2.0-alpha1", | ||
"publishConfig": { | ||
@@ -36,8 +36,8 @@ "access": "public" | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "^23.1.1", | ||
"@vaadin/field-base": "^23.1.1", | ||
"@vaadin/input-container": "^23.1.1", | ||
"@vaadin/vaadin-lumo-styles": "^23.1.1", | ||
"@vaadin/vaadin-material-styles": "^23.1.1", | ||
"@vaadin/vaadin-themable-mixin": "^23.1.1" | ||
"@vaadin/component-base": "23.2.0-alpha1", | ||
"@vaadin/field-base": "23.2.0-alpha1", | ||
"@vaadin/input-container": "23.2.0-alpha1", | ||
"@vaadin/vaadin-lumo-styles": "23.2.0-alpha1", | ||
"@vaadin/vaadin-material-styles": "23.2.0-alpha1", | ||
"@vaadin/vaadin-themable-mixin": "23.2.0-alpha1" | ||
}, | ||
@@ -49,3 +49,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "390458d6519433a2dd502cef90da48e84573a275" | ||
"gitHead": "f226a2976c270d3d53c824f6e0a740a5d3382d91" | ||
} |
@@ -204,25 +204,2 @@ /** | ||
/** @protected */ | ||
connectedCallback() { | ||
super.connectedCallback(); | ||
this._inputField = this.shadowRoot.querySelector('[part=input-field]'); | ||
// Wheel scrolling results in async scroll events. Preventing the wheel | ||
// event, scrolling manually and then synchronously updating the scroll position CSS variable | ||
// allows us to avoid some jumpy behavior that would occur on wheel otherwise. | ||
this._inputField.addEventListener('wheel', (e) => { | ||
const scrollTopBefore = this._inputField.scrollTop; | ||
this._inputField.scrollTop += e.deltaY; | ||
if (scrollTopBefore !== this._inputField.scrollTop) { | ||
e.preventDefault(); | ||
this.__scrollPositionUpdated(); | ||
} | ||
}); | ||
this._updateHeight(); | ||
this.__scrollPositionUpdated(); | ||
} | ||
/** | ||
@@ -250,2 +227,20 @@ * @protected | ||
this.addEventListener('animationend', this._onAnimationEnd); | ||
this._inputField = this.shadowRoot.querySelector('[part=input-field]'); | ||
// Wheel scrolling results in async scroll events. Preventing the wheel | ||
// event, scrolling manually and then synchronously updating the scroll position CSS variable | ||
// allows us to avoid some jumpy behavior that would occur on wheel otherwise. | ||
this._inputField.addEventListener('wheel', (e) => { | ||
const scrollTopBefore = this._inputField.scrollTop; | ||
this._inputField.scrollTop += e.deltaY; | ||
if (scrollTopBefore !== this._inputField.scrollTop) { | ||
e.preventDefault(); | ||
this.__scrollPositionUpdated(); | ||
} | ||
}); | ||
this._updateHeight(); | ||
this.__scrollPositionUpdated(); | ||
} | ||
@@ -252,0 +247,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32238
493
1
+ Added@vaadin/component-base@23.2.0-alpha1(transitive)
+ Added@vaadin/field-base@23.2.0-alpha1(transitive)
+ Added@vaadin/icon@23.2.0-alpha1(transitive)
+ Added@vaadin/input-container@23.2.0-alpha1(transitive)
+ Added@vaadin/vaadin-lumo-styles@23.2.0-alpha1(transitive)
+ Added@vaadin/vaadin-material-styles@23.2.0-alpha1(transitive)
+ Added@vaadin/vaadin-themable-mixin@23.2.0-alpha1(transitive)
- Removed@vaadin/component-base@23.5.11(transitive)
- Removed@vaadin/field-base@23.5.11(transitive)
- Removed@vaadin/icon@23.5.11(transitive)
- Removed@vaadin/input-container@23.5.11(transitive)
- Removed@vaadin/vaadin-lumo-styles@23.5.11(transitive)
- Removed@vaadin/vaadin-material-styles@23.5.11(transitive)
- Removed@vaadin/vaadin-themable-mixin@23.5.11(transitive)