We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f631bd commit ef02e29Copy full SHA for ef02e29
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