js-trap-tab
Advanced tools
Comparing version 0.1.0 to 1.0.1
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6697
0
29