Disable postButton and enable

This commit is contained in:
Belen Curcio
2017-04-12 16:55:43 -03:00
parent e8d9f8aab8
commit c0913d8e98
+3 -1
View File
@@ -188,7 +188,9 @@ class CommentBox extends Component {
<Button
cStyle={!length || (charCount && length > charCount) ? 'lightGrey' : 'darkGrey'}
className={`${name}-button`}
onClick={this.postComment}>
onClick={this.postComment}
disabled={!length || (charCount && length > charCount) ? 'disabled' : ''}
>
{lang.t('post')}
</Button>
)