mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
Correctly handly activeReplyBox optimization
This commit is contained in:
@@ -130,7 +130,7 @@ export default class Comment extends React.Component {
|
||||
const changes = getShallowChanges(this.props, next);
|
||||
if (changes.length === 1 && changes[0] === 'activeReplyBox') {
|
||||
if (
|
||||
!containsCommentId(next, this.props.activeReplyBox) &&
|
||||
!containsCommentId(this.props, this.props.activeReplyBox) &&
|
||||
!containsCommentId(next, next.activeReplyBox)
|
||||
) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user