Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glomex/glomex-dialog

Package Overview
Dependencies
Maintainers
12
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glomex/glomex-dialog - npm Package Compare versions

Comparing version 1.12.3 to 1.12.4

31

glomex-dialog.js

@@ -172,2 +172,29 @@ const NON_VISIBLE_WIDTH = window.innerWidth < 720 ? 320 : 640;

function getActiveElement(root) {
const activeEl = root.activeElement;
if (!activeEl) {
return null;
}
if (activeEl.shadowRoot) {
return getActiveElement(activeEl.shadowRoot);
}
return activeEl;
}
function isInDocument(element, document) {
let currentElement = element;
while (currentElement && currentElement.parentNode) {
if (currentElement.parentNode === document) {
return true;
} if (currentElement.parentNode instanceof window.DocumentFragment) {
currentElement = currentElement.parentNode.host;
} else {
currentElement = currentElement.parentNode;
}
}
return false;
}
/**

@@ -454,4 +481,4 @@ * A dialog web component that allows docking a video player or

if (event.key === 'Tab') {
const { activeElement } = window.document;
if (activeElement !== this && !this.contains(activeElement)) {
const activeElement = getActiveElement(window.document);
if (activeElement !== this && !isInDocument(activeElement, this)) {
const dialogContent = this.shadowRoot.querySelector('.dialog-content');

@@ -458,0 +485,0 @@ dialogContent.focus();

2

package.json
{
"name": "@glomex/glomex-dialog",
"version": "1.12.3",
"version": "1.12.4",
"description": "A dialog web component that allows docking a video player or putting it in a lightbox",

@@ -5,0 +5,0 @@ "type": "module",

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