Skip to content

Commit

Permalink
fix(ComposedModal): close ComposedModal when ESC is pressed, resolves c…
Browse files Browse the repository at this point in the history
  • Loading branch information
rezak-otmani authored and joshblack committed May 10, 2018
1 parent d841f22 commit a87bdf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/ComposedModal/ComposedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,12 @@ export default class ComposedModal extends Component {

return (
<div
{...other}
role="presentation"
ref={modal => (this.modal = modal)}
onKeyDown={this.handleKeyDown}
className={modalClass}
{...other}>
tabIndex={-1}>
<div className={containerClass}>{childrenWithProps}</div>
</div>
);
Expand Down

0 comments on commit a87bdf1

Please sign in to comment.