@@ -96,7 +96,7 @@ class AddCommentFormView extends React.PureComponent {
96
96
< div className = "col-sm-12 form-group" >
97
97
< form id = "add-comment-form"
98
98
aria-label = { l10n [ 't_add_comment' ] || 'Add a comment' }
99
- className = { ` form-horizontal ${ hasValidationErrors ? 'has-error' : '' } ` }
99
+ className = " form-horizontal"
100
100
onSubmit = { handleSubmit } >
101
101
{ hasServerError &&
102
102
< div id = "add-comment-failed-msg"
@@ -105,7 +105,7 @@ class AddCommentFormView extends React.PureComponent {
105
105
{ l10n [ 't_server_error' ] || 'Server error' }
106
106
</ div >
107
107
}
108
- < div className = " form-group form-group-sm" >
108
+ < div className = { ` form-group form-group-sm ${ hasValidationErrors ? 'has-error' : '' } ` } >
109
109
< label htmlFor = "new-comment" className = "control-label col-sm-3 required-field" >
110
110
{ l10n [ 't_comment' ] || 'Comment' }
111
111
</ label >
@@ -118,14 +118,14 @@ class AddCommentFormView extends React.PureComponent {
118
118
required = "required"
119
119
onChange = { handleChange } >
120
120
</ textarea >
121
+ { hasValidationErrors &&
122
+ < span id = "new-comment.errors" className = "help-block" >
123
+ { validationErrors . join ( ', ' ) }
124
+ </ span >
125
+ }
121
126
</ div >
122
127
</ div >
123
128
< div className = "col-sm-offset-3 col-sm-9" >
124
- { hasValidationErrors &&
125
- < span id = "new-comment.errors" className = "help-block" >
126
- { validationErrors . join ( ', ' ) }
127
- </ span >
128
- }
129
129
< button
130
130
type = "submit"
131
131
className = "btn btn-primary btn-sm"
0 commit comments