提交 4a0247ee 编写于 作者: P Pierre Lebrun 提交者: Kamran Ahmed

Respect allowClose option when ESC key is pressed

上级 0b31fb75
...@@ -184,7 +184,7 @@ export default class Driver { ...@@ -184,7 +184,7 @@ export default class Driver {
} }
// If escape was pressed and it is allowed to click outside to close // If escape was pressed and it is allowed to click outside to close
if (event.keyCode === ESC_KEY_CODE) { if (event.keyCode === ESC_KEY_CODE && this.options.allowClose) {
this.reset(); this.reset();
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册