We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bc58b9c + ef02e29 commit 980ad5dCopy full SHA for 980ad5d
lib/components/ModalPortal.js
@@ -142,7 +142,10 @@ var ModalPortal = module.exports = React.createClass({
142
143
handleKeyDown: function(event) {
144
if (event.keyCode == 9 /*tab*/) scopeTab(this.refs.content, event);
145
- if (event.keyCode == 27 /*esc*/) this.requestClose();
+ if (event.keyCode == 27 /*esc*/) {
146
+ event.preventDefault();
147
+ this.requestClose();
148
+ }
149
},
150
151
handleOverlayClick: function() {
0 commit comments