New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/vaadin-menu-bar

Package Overview
Dependencies
Maintainers
16
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-menu-bar - npm Package Compare versions

Comparing version 1.0.0-alpha2 to 1.0.0-alpha3

2

package.json

@@ -13,3 +13,3 @@ {

"name": "@vaadin/vaadin-menu-bar",
"version": "1.0.0-alpha2",
"version": "1.0.0-alpha3",
"main": "vaadin-menu-bar.js",

@@ -16,0 +16,0 @@ "author": "Vaadin Ltd",

@@ -204,2 +204,17 @@ /**

__isOverlayClick(e) {
const path = e.composedPath();
let overlay = path.filter(node => node instanceof customElements.get('vaadin-context-menu-overlay'))[0];
while (overlay) {
if (overlay === this._subMenu.$.overlay) {
return true;
} else if (overlay.parentOverlay) {
overlay = overlay.parentOverlay;
} else {
return false;
}
}
}
_onMouseOver(e) {

@@ -233,3 +248,3 @@ const button = Array.from(e.composedPath()).filter(el => el.item)[0];

__outsideClickListener(e) {
if (!this._getButtonFromEvent(e) && e.composedPath().indexOf(this._subMenu.$.overlay) === -1) {
if (!this._getButtonFromEvent(e) && !this.__isOverlayClick(e)) {
this._close();

@@ -236,0 +251,0 @@ }

@@ -98,3 +98,3 @@ /**

static get version() {
return '1.0.0-alpha2';
return '1.0.0-alpha3';
}

@@ -101,0 +101,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc