Added preventDefault (#3137)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
0d8431b4ba
Коммит
24590b3e89
@@ -225,6 +225,7 @@ class CreateComment extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
|
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);
|
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
|
||||||
if (!lastPost) {
|
if (!lastPost) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -374,6 +374,7 @@ class CreatePost extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
|
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
|
||||||
|
e.preventDefault();
|
||||||
const channelId = ChannelStore.getCurrentId();
|
const channelId = ChannelStore.getCurrentId();
|
||||||
const lastPost = PostStore.getCurrentUsersLatestPost(channelId);
|
const lastPost = PostStore.getCurrentUsersLatestPost(channelId);
|
||||||
if (!lastPost) {
|
if (!lastPost) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user