Prompt if a user really wants to leave the room

This commit is contained in:
Erik Johnston
2015-07-22 17:53:18 +01:00
parent fbb6775523
commit 51d2677525
5 changed files with 129 additions and 12 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ module.exports = {
var closeDialog = function() {
React.unmountComponentAtNode(self.getOrCreateContainer());
if (props && props.onFinished) props.onFinished.apply(arguments);
if (props && props.onFinished) props.onFinished.apply(null, arguments);
};
// FIXME: If a dialog uses getDefaultProps it clobbers the onFinished