@vaadin/menu-bar 23.1.8 → 23.1.10

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/menu-bar",
3
- "version": "23.1.8",
3
+ "version": "23.1.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -35,18 +35,18 @@
35
35
  "dependencies": {
36
36
  "@open-wc/dedupe-mixin": "^1.3.0",
37
37
  "@polymer/polymer": "^3.0.0",
38
- "@vaadin/button": "~23.1.8",
39
- "@vaadin/component-base": "~23.1.8",
40
- "@vaadin/vaadin-context-menu": "~23.1.8",
41
- "@vaadin/vaadin-lumo-styles": "~23.1.8",
42
- "@vaadin/vaadin-material-styles": "~23.1.8",
43
- "@vaadin/vaadin-themable-mixin": "~23.1.8"
38
+ "@vaadin/button": "~23.1.10",
39
+ "@vaadin/component-base": "~23.1.10",
40
+ "@vaadin/vaadin-context-menu": "~23.1.10",
41
+ "@vaadin/vaadin-lumo-styles": "~23.1.10",
42
+ "@vaadin/vaadin-material-styles": "~23.1.10",
43
+ "@vaadin/vaadin-themable-mixin": "~23.1.10"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@esm-bundle/chai": "^4.3.4",
47
- "@vaadin/icon": "~23.1.8",
47
+ "@vaadin/icon": "~23.1.10",
48
48
  "@vaadin/testing-helpers": "^0.3.2",
49
49
  "sinon": "^13.0.2"
50
50
  },
51
- "gitHead": "297e4e51743751bed97f5400e661529a7d550870"
51
+ "gitHead": "439dc60a019bae972f286adc0479d340dd1ffe72"
52
52
  }
@@ -42,7 +42,6 @@ export const InteractionsMixin = (superClass) =>
42
42
 
43
43
  const overlay = this._subMenu.$.overlay;
44
44
  overlay.addEventListener('keydown', this.__boundOnContextMenuKeydown);
45
- overlay.addEventListener('vaadin-overlay-open', this.__alignOverlayPosition.bind(this));
46
45
 
47
46
  const container = this._container;
48
47
  container.addEventListener('click', this.__onButtonClick.bind(this));
@@ -202,30 +201,6 @@ export const InteractionsMixin = (superClass) =>
202
201
  return this.shadowRoot.querySelector('vaadin-menu-bar-submenu');
203
202
  }
204
203
 
205
- /** @private */
206
- __alignOverlayPosition(e) {
207
- /* c8 ignore next */
208
- if (!this._expandedButton) {
209
- // When `openOnHover` is true, quickly moving cursor can close submenu,
210
- // so by the time when event listener gets executed button is null.
211
- // See https://github.com/vaadin/vaadin-menu-bar/issues/85
212
- return;
213
- }
214
- const overlay = e.target;
215
- const { width, height, left } = this._expandedButton.getBoundingClientRect();
216
- if (overlay.hasAttribute('bottom-aligned')) {
217
- overlay.style.bottom = `${parseInt(getComputedStyle(overlay).bottom) + height}px`;
218
- }
219
- const endAligned = overlay.hasAttribute('end-aligned');
220
- if (endAligned) {
221
- if (this.__isRTL) {
222
- overlay.style.left = `${left}px`;
223
- } else {
224
- overlay.style.right = `${parseInt(getComputedStyle(overlay).right) - width}px`;
225
- }
226
- }
227
- }
228
-
229
204
  /** @private */
230
205
  _itemsChanged() {
231
206
  const subMenu = this._subMenu;