diff options
author | nickago <ngonella@calpoly.edu> | 2015-07-17 14:44:13 -0700 |
---|---|---|
committer | nickago <ngonella@calpoly.edu> | 2015-07-23 09:03:57 -0700 |
commit | 0acab11cf46a9e279d16e803ad32b8aa67e20679 (patch) | |
tree | 573b614f06dc2bf30f74d4f184c9240e1eb57b8c /web/react/components/rename_team_modal.jsx | |
parent | dc79707787b521ea5fc0d9088ccd9069780c8e0c (diff) | |
download | chat-0acab11cf46a9e279d16e803ad32b8aa67e20679.tar.gz chat-0acab11cf46a9e279d16e803ad32b8aa67e20679.tar.bz2 chat-0acab11cf46a9e279d16e803ad32b8aa67e20679.zip |
When closing out of a modal, unsaved data and text inside of it is erased.
Diffstat (limited to 'web/react/components/rename_team_modal.jsx')
-rw-r--r-- | web/react/components/rename_team_modal.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/rename_team_modal.jsx b/web/react/components/rename_team_modal.jsx index a6da57b67..79836e4a8 100644 --- a/web/react/components/rename_team_modal.jsx +++ b/web/react/components/rename_team_modal.jsx @@ -47,7 +47,7 @@ module.exports = React.createClass({ componentDidMount: function() { var self = this; $(this.refs.modal.getDOMNode()).on('hidden.bs.modal', function(e) { - self.setState({ name: self.props.teamDisplayName }); + self.setState({ name: self.props.teamDisplayName, name_error: "", server_error: ""}); }); }, getInitialState: function() { |