focus-trap
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -29,3 +29,5 @@ var tabbable = require('tabbable'); | ||
} | ||
return node; | ||
} | ||
if (typeof config.initialFocus === 'string') { | ||
@@ -37,3 +39,3 @@ node = document.querySelector(config.initialFocus); | ||
if (!node) { | ||
throw new Error('The `initialFocus` selector you passed refers to no known node'); | ||
throw new Error('The `initialFocus` selector you passed referred to no known node'); | ||
} | ||
@@ -40,0 +42,0 @@ return node; |
{ | ||
"name": "focus-trap", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Trap focus within a DOM node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9258
95