Skip to content

Commit

Permalink
Add new comments below older instead of the reverse (ant-design#29136)
Browse files Browse the repository at this point in the history
In the example with the editor, the new comments are added on top of the older ones which is not following the way it is usually done in discussions.
  • Loading branch information
Igor Andriushchenko authored Jan 31, 2021
1 parent 406e5c7 commit be08d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/comment/demo/editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ class App extends React.Component {
submitting: false,
value: '',
comments: [
...this.state.comments,
{
author: 'Han Solo',
avatar: 'https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png',
content: <p>{this.state.value}</p>,
datetime: moment().fromNow(),
},
...this.state.comments,
],
});
}, 1000);
Expand Down

0 comments on commit be08d23

Please sign in to comment.