We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f826788 commit fba634dCopy full SHA for fba634d
webapp/src/components/modals/create_issue/create_issue.jsx
@@ -61,9 +61,10 @@ export default class CreateIssueModal extends PureComponent {
61
e.preventDefault();
62
}
63
64
- if (!this.validator.validate() || !this.state.issueTitle) {
+ const isValidTitle = this.state.issueTitle.trim().length !== 0;
65
+ if (!this.validator.validate() || !isValidTitle) {
66
this.setState({
- issueTitleValid: Boolean(this.state.issueTitle),
67
+ issueTitleValid: isValidTitle,
68
showErrors: true,
69
});
70
return;
0 commit comments