Fix for being unable to type in the form fields on the add server dialog when launched from the tab bar

Closes #780
This commit is contained in:
Eric Newport
2018-04-27 20:16:54 -04:00
parent 662d97b773
commit e8444a6ef3
2 changed files with 8 additions and 0 deletions

View File

@@ -148,6 +148,9 @@ export default class NewTeamModal extends React.Component {
value={this.state.teamName}
placeholder='Server Name'
onChange={this.handleTeamNameChange.bind(this)}
onClick={(e) => {
e.stopPropagation();
}}
/>
<FormControl.Feedback/>
<HelpBlock>{'The name of the server displayed on your desktop app tab bar.'}</HelpBlock>
@@ -163,6 +166,9 @@ export default class NewTeamModal extends React.Component {
value={this.state.teamUrl}
placeholder='https://example.com'
onChange={this.handleTeamUrlChange.bind(this)}
onClick={(e) => {
e.stopPropagation();
}}
/>
<FormControl.Feedback/>
<HelpBlock className='NewTeamModal-noBottomSpace'>{'The URL of your Mattermost server. Must start with http:// or https://.'}</HelpBlock>