Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulanger committed Oct 20, 2020
1 parent 425a7b4 commit 4816ec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/class/qxl/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ qx.Class.define("qxl.dialog.Dialog", {
* @param e {qx.event.type.KeyInput}
*/
_handleEscape: function(e) {
if (this.isSeeable() && this.isCancelOnEscape() && e.getKeyCode() === 27) {
if (this.isCancelOnEscape() && e.getKeyCode() === 27 && this.getContentElement() && this.isSeeable()) {
this._handleCancel();
}
}
Expand Down

0 comments on commit 4816ec1

Please sign in to comment.