Skip to content

Commit 8f54b82

Browse files
authored
Merge pull request #64 from JakeGinnivan/on_closing
Pass the closing window to the onClosing callback.
2 parents 37e9703 + 431c01f commit 8f54b82

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/react-popout.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default class PopoutWindow extends React.Component {
171171
if (this.state.container) {
172172
clearInterval(this.interval);
173173
this.root.unmount(this.state.container);
174-
this.props.onClosing && this.props.onClosing();
174+
this.props.onClosing && this.props.onClosing(this.state.popoutWindow);
175175
}
176176
}
177177

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-popout",
3-
"version": "3.0.3",
3+
"version": "3.0.4",
44
"description": "Wraps window.open in a react component, allowing the contents to be part of your react render tree",
55
"main": "dist/react-popout.min.js",
66
"repository": {

0 commit comments

Comments
 (0)