提交 7fc27ac0 编写于 作者: K Kamran Ahmed

Escape key conflict with allowClose Fix#109

上级 4fcf440e
此差异已折叠。
此差异已折叠。
{
"name": "driver.js",
"version": "0.6.0",
"version": "0.6.1",
"description": "A light-weight, no-dependency, vanilla JavaScript library to drive the user's focus across the page",
"main": "dist/driver.min.js",
"types": "types/index.d.ts",
......
......@@ -147,7 +147,7 @@ export default class Driver {
}
// If escape was pressed and it is allowed to click outside to close
if (event.keyCode === ESC_KEY_CODE && this.options.allowClose) {
if (event.keyCode === ESC_KEY_CODE) {
this.reset();
return;
}
......
......@@ -3,8 +3,8 @@ const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const isProduction = process.env.NODE_ENV === 'production';
const scriptFileName = isProduction ? 'driver-demo.min.js' : 'driver-demo.js';
const styleFileName = isProduction ? 'driver-demo.min.css' : 'driver-demo.css';
const scriptFileName = 'driver-demo.min.js';
const styleFileName = 'driver-demo.min.css';
module.exports = {
mode: isProduction ? 'production' : 'development',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册