Fixed pasting text sending the caret to the end of the post textbox (#5567)

Этот коммит содержится в:
Harrison Healey
2017-02-28 18:51:11 -05:00
коммит произвёл enahum
родитель 23be0167f4
Коммит df07aeeb12

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

@@ -292,10 +292,12 @@ class FileUpload extends React.Component {
this.props.onUploadStart([clientId], channelId); this.props.onUploadStart([clientId], channelId);
} }
}
if (numToUpload > 0) {
this.props.onFileUploadChange(); this.props.onFileUploadChange();
} }
}
}
keyUpload(e) { keyUpload(e) {
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.U) { if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.U) {