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

js-trap-tab

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-trap-tab - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json

@@ -6,3 +6,3 @@ {

"description": "Accessible Keyboard Traps",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/vmitsaras/js-trap-tab",

@@ -9,0 +9,0 @@ "license": "MIT",

@@ -58,6 +58,7 @@ /* global jQuery:true */

// get list of all children elements in given object
var o = self.$element.find('*');
var o = self.$element.find('*'),
focusEl = self.$element.find('[data-focus]');
// set the focus to the first keyboard focusable item
o.filter(opts.focusableElementsString).filter(':visible').first().focus();
focusEl.length ? focusEl.first().focus() : o.filter(opts.focusableElementsString).filter(':visible').first().focus();

@@ -64,0 +65,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