@vaadin/combo-box 23.2.0-dev.53560527d → 23.2.0-dev.8a7678b70

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/combo-box",
3
- "version": "23.2.0-dev.53560527d",
3
+ "version": "23.2.0-dev.8a7678b70",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,23 +36,23 @@
36
36
  "dependencies": {
37
37
  "@open-wc/dedupe-mixin": "^1.3.0",
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "23.2.0-dev.53560527d",
40
- "@vaadin/field-base": "23.2.0-dev.53560527d",
41
- "@vaadin/input-container": "23.2.0-dev.53560527d",
42
- "@vaadin/item": "23.2.0-dev.53560527d",
43
- "@vaadin/lit-renderer": "23.2.0-dev.53560527d",
44
- "@vaadin/vaadin-lumo-styles": "23.2.0-dev.53560527d",
45
- "@vaadin/vaadin-material-styles": "23.2.0-dev.53560527d",
46
- "@vaadin/vaadin-overlay": "23.2.0-dev.53560527d",
47
- "@vaadin/vaadin-themable-mixin": "23.2.0-dev.53560527d"
39
+ "@vaadin/component-base": "23.2.0-dev.8a7678b70",
40
+ "@vaadin/field-base": "23.2.0-dev.8a7678b70",
41
+ "@vaadin/input-container": "23.2.0-dev.8a7678b70",
42
+ "@vaadin/item": "23.2.0-dev.8a7678b70",
43
+ "@vaadin/lit-renderer": "23.2.0-dev.8a7678b70",
44
+ "@vaadin/vaadin-lumo-styles": "23.2.0-dev.8a7678b70",
45
+ "@vaadin/vaadin-material-styles": "23.2.0-dev.8a7678b70",
46
+ "@vaadin/vaadin-overlay": "23.2.0-dev.8a7678b70",
47
+ "@vaadin/vaadin-themable-mixin": "23.2.0-dev.8a7678b70"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
51
- "@vaadin/polymer-legacy-adapter": "23.2.0-dev.53560527d",
51
+ "@vaadin/polymer-legacy-adapter": "23.2.0-dev.8a7678b70",
52
52
  "@vaadin/testing-helpers": "^0.3.2",
53
- "@vaadin/text-field": "23.2.0-dev.53560527d",
53
+ "@vaadin/text-field": "23.2.0-dev.8a7678b70",
54
54
  "lit": "^2.0.0",
55
55
  "sinon": "^13.0.2"
56
56
  },
57
- "gitHead": "6c5c18369b09e22e76365d8a8a5e4bbb220f969b"
57
+ "gitHead": "85b403f96d8282f262322b56c0ff4289f843d02a"
58
58
  }
@@ -442,6 +442,11 @@ export const ComboBoxMixin = (subclass) =>
442
442
  // eslint-disable-next-line max-params
443
443
  _updateScroller(scroller, items, opened, loading, selectedItem, itemIdPath, focusedIndex, renderer, theme) {
444
444
  if (scroller) {
445
+ if (opened) {
446
+ scroller.style.maxHeight =
447
+ getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`) || '65vh';
448
+ }
449
+
445
450
  scroller.setProperties({
446
451
  items: opened ? items : [],
447
452
  opened,
@@ -849,10 +854,6 @@ export const ComboBoxMixin = (subclass) =>
849
854
  _onOpened() {
850
855
  // Defer scroll position adjustment to improve performance.
851
856
  requestAnimationFrame(() => {
852
- // When opened is set as attribute, this logic needs to be delayed until scroller is created.
853
- this._scroller.style.maxHeight =
854
- getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`) || '65vh';
855
-
856
857
  this._scrollIntoView(this._focusedIndex);
857
858
 
858
859
  // Set attribute after the items are rendered when overlay is opened for the first time.