File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class CommentList extends React.Component {
39
39
// http://facebook.github.io/react/docs/multiple-components.html#dynamic-children
40
40
return (
41
41
< Comment
42
- key = { index }
42
+ key = { $$comment . get ( 'id' ) }
43
43
author = { $$comment . get ( 'author' ) }
44
44
text = { $$comment . get ( 'text' ) }
45
45
/>
@@ -50,14 +50,21 @@ class CommentList extends React.Component {
50
50
< div >
51
51
< ReactCSSTransitionGroup
52
52
transitionName = "element"
53
- transitionEnterTimeout = { 300 }
54
- transitionLeaveTimeout = { 300 }
53
+ transitionEnterTimeout = { 500 }
54
+ transitionLeaveTimeout = { 500 }
55
55
>
56
56
{ this . _errorWarning ( ) }
57
57
</ ReactCSSTransitionGroup >
58
- < div className = "commentList" >
58
+
59
+ < ReactCSSTransitionGroup
60
+ transitionName = "element"
61
+ transitionEnterTimeout = { 500 }
62
+ transitionLeaveTimeout = { 500 }
63
+ className = "commentList"
64
+ component = "div"
65
+ >
59
66
{ commentNodes }
60
- </ div >
67
+ </ ReactCSSTransitionGroup >
61
68
</ div >
62
69
) ;
63
70
}
You can’t perform that action at this time.
0 commit comments