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 0.1.0 to 1.0.1

2

bower.json
{
"name": "js-trap-tab",
"version": "0.1.0",
"version": "1.0.1",
"main": [

@@ -5,0 +5,0 @@ "trap-tab.js"

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

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

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

@@ -19,2 +19,5 @@ # js-trap-tab

##### Example
[jQuery accessible Offcanvas plugin](https://github.com/vmitsaras/js-offcanvas/blob/master/src/js-offcanvas.js#L96)
## License

@@ -21,0 +24,0 @@

@@ -78,3 +78,3 @@ /* global jQuery:true */

var focusableItems;
focusableItems = o.filter(opts.focusableElementsString).filter(':visible')
focusableItems = o.filter(opts.focusableElementsString).filter(':visible');

@@ -87,3 +87,3 @@ // get currently focused item

var numberOfFocusableItems;
numberOfFocusableItems = focusableItems.length
numberOfFocusableItems = focusableItems.length;

@@ -115,3 +115,3 @@ // get the index of the currently focused item

TrapTabKey.prototype.defaults = {
focusableElementsString : "a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]"
focusableElementsString : "['data-focus'], a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]"
};

@@ -118,0 +118,0 @@

Sorry, the diff of this file is not supported yet

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