We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b31fb7 commit 4a0247eCopy full SHA for 4a0247e
src/index.js
@@ -184,7 +184,7 @@ export default class Driver {
184
}
185
186
// If escape was pressed and it is allowed to click outside to close
187
- if (event.keyCode === ESC_KEY_CODE) {
+ if (event.keyCode === ESC_KEY_CODE && this.options.allowClose) {
188
this.reset();
189
return;
190
0 commit comments