Socket
Socket
Sign inDemoInstall

focus-lock

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

focus-lock - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3

2

dist/cjs/utils/DOMutils.js

@@ -26,3 +26,3 @@ 'use strict';

var notHiddenInput = exports.notHiddenInput = function notHiddenInput(node) {
return node.tagName !== 'INPUT' || node.type !== 'hidden';
return !((node.tagName === 'INPUT' || node.tagName === 'BUTTON') && (node.type === 'hidden' || node.disabled));
};

@@ -29,0 +29,0 @@

@@ -17,3 +17,3 @@ import { orderByTabIndex } from './tabOrder';

export var notHiddenInput = function notHiddenInput(node) {
return node.tagName !== 'INPUT' || node.type !== 'hidden';
return !((node.tagName === 'INPUT' || node.tagName === 'BUTTON') && (node.type === 'hidden' || node.disabled));
};

@@ -20,0 +20,0 @@

{
"name": "focus-lock",
"version": "0.5.2",
"version": "0.5.3",
"description": "DOM trap for a focus",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

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