Этот коммит содержится в:
David Lu
2016-05-27 08:42:00 -07:00
коммит произвёл Joram Wilander
родитель 0d8431b4ba
Коммит 24590b3e89
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@@ -225,6 +225,7 @@ class CreateComment extends React.Component {
}
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
e.preventDefault();
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
if (!lastPost) {
return;

Просмотреть файл

@@ -374,6 +374,7 @@ class CreatePost extends React.Component {
}
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
e.preventDefault();
const channelId = ChannelStore.getCurrentId();
const lastPost = PostStore.getCurrentUsersLatestPost(channelId);
if (!lastPost) {