Skip to content

Commit f6aacfa

Browse files
fantuaTheSharpieOne
authored andcommitted
feat(Modal): pass event object to toggle prop (reactstrap#903)
1 parent b1f6005 commit f6aacfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Modal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,13 @@ class Modal extends React.Component {
163163
const container = this._dialog;
164164

165165
if (e.target && !container.contains(e.target) && this.props.toggle) {
166-
this.props.toggle();
166+
this.props.toggle(e);
167167
}
168168
}
169169

170170
handleEscape(e) {
171171
if (this.props.isOpen && this.props.keyboard && e.keyCode === 27 && this.props.toggle) {
172-
this.props.toggle();
172+
this.props.toggle(e);
173173
}
174174
}
175175

0 commit comments

Comments
 (0)