From 0acab11cf46a9e279d16e803ad32b8aa67e20679 Mon Sep 17 00:00:00 2001 From: nickago Date: Fri, 17 Jul 2015 14:44:13 -0700 Subject: When closing out of a modal, unsaved data and text inside of it is erased. --- web/react/components/rename_team_modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/react/components/rename_team_modal.jsx') 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() { -- cgit v1.2.3-1-g7c22