Skip to content

Commit 5ea9433

Browse files
committed
Added stopPropagation() to the escape key binding when the dialog is focused, to prevent double calls to close() from occurring.
1 parent 002f9a2 commit 5ea9433

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ui/jquery.ui.dialog.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ $.widget("ui.dialog", {
101101
event.keyCode === $.ui.keyCode.ESCAPE ) {
102102
self.close( event );
103103
event.preventDefault();
104+
event.stopPropagation();
104105
}
105106
})
106107
.attr({

0 commit comments

Comments
 (0)