[PLT-5445] Mobile view: Set focus back to message box after uploading a file (#5360)

Этот коммит содержится в:
Saturnino Abril
2017-02-23 17:57:41 +09:00
коммит произвёл George Goldberg
родитель 9220254f05
Коммит f6d22ee4f0
3 изменённых файлов: 19 добавлений и 10 удалений

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

@@ -126,6 +126,8 @@ class FileUpload extends React.Component {
Utils.clearFileInput(e.target);
}
this.props.onFileUploadChange();
}
handleDrop(e) {
@@ -190,6 +192,8 @@ class FileUpload extends React.Component {
self.handleDrop(e);
}
});
this.props.onFileUploadChange();
}
componentWillUnmount() {
@@ -289,6 +293,8 @@ class FileUpload extends React.Component {
this.props.onUploadStart([clientId], channelId);
}
}
this.props.onFileUploadChange();
}
keyUpload(e) {
@@ -369,6 +375,7 @@ FileUpload.propTypes = {
onClick: React.PropTypes.func,
onFileUpload: React.PropTypes.func,
onUploadStart: React.PropTypes.func,
onFileUploadChange: React.PropTypes.func,
onTextDrop: React.PropTypes.func,
channelId: React.PropTypes.string,
postType: React.PropTypes.string