mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
Disable postButton and enable
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user