react-burger-menu
Advanced tools
Comparing version 2.6.7 to 2.6.8
@@ -209,3 +209,4 @@ 'use strict'; | ||
if (this.state.isOpen && (e.key === 'Escape' || e.keyCode === 27)) { | ||
// Close on ESC, unless disabled | ||
if (!this.props.disableCloseOnEsc && this.state.isOpen && (e.key === 'Escape' || e.keyCode === 27)) { | ||
this.toggleMenu(); | ||
@@ -226,6 +227,6 @@ } | ||
value: function componentDidMount() { | ||
// Bind ESC key handler (unless disabled or custom function supplied). | ||
// Bind ESC key handler (unless custom function supplied). | ||
if (this.props.customOnKeyDown) { | ||
window.onkeydown = this.props.customOnKeyDown; | ||
} else if (!this.props.disableCloseOnEsc) { | ||
} else { | ||
window.onkeydown = this.listenForClose.bind(this); | ||
@@ -232,0 +233,0 @@ } |
{ | ||
"name": "react-burger-menu", | ||
"version": "2.6.7", | ||
"version": "2.6.8", | ||
"description": "An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations", | ||
@@ -19,7 +19,8 @@ "main": "lib/BurgerMenu.js", | ||
"eve": "~0.5.1", | ||
"prop-types": "^15.6.2", | ||
"prop-types": "^15.7.2", | ||
"snapsvg-cjs": "0.0.6" | ||
}, | ||
"devDependencies": { | ||
"ajv": "^6.6.2", | ||
"acorn": "^6.1.1", | ||
"ajv": "5.0.0", | ||
"babel-core": "^6.26.3", | ||
@@ -34,15 +35,16 @@ "babel-eslint": "^8.2.6", | ||
"eslint": "^4.19.1", | ||
"eslint-plugin-react": "^7.12.3", | ||
"gulp": "^3.8.11", | ||
"gulp-git": "^2.8.0", | ||
"eslint-plugin-react": "^7.12.4", | ||
"gulp": "^3.9.0", | ||
"gulp-git": "^2.9.0", | ||
"jsdom": "^11.12.0", | ||
"jsdom-global": "^3.0.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"nyc": "^13.3.0", | ||
"pre-commit": "^1.2.2", | ||
"prettier": "^1.15.3", | ||
"react": "^16.7.0", | ||
"prettier": "^1.16.4", | ||
"react": "^16.8.6", | ||
"react-component-gulp-tasks": "github:negomi/react-component-gulp-tasks", | ||
"react-dom": "^16.7.0", | ||
"react-test-renderer": "^16.7.0", | ||
"react-dom": "^16.8.6", | ||
"react-test-renderer": "^16.8.6", | ||
"request": "^2.88.0", | ||
"sinon": "^4.5.0" | ||
@@ -49,0 +51,0 @@ }, |
Sorry, the diff of this file is too big to display
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
179977
3614
26
5
Updatedprop-types@^15.7.2