Updating ESLint (#3597)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
491593b285
Коммит
b5c5744bc7
@@ -282,7 +282,8 @@ class FileUpload extends React.Component {
|
||||
keyUpload(e) {
|
||||
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.U) {
|
||||
e.preventDefault();
|
||||
if (this.props.postType === 'post' && document.activeElement.id === 'post_textbox' || this.props.postType === 'comment' && document.activeElement.id === 'reply_textbox') {
|
||||
if ((this.props.postType === 'post' && document.activeElement.id === 'post_textbox') ||
|
||||
(this.props.postType === 'comment' && document.activeElement.id === 'reply_textbox')) {
|
||||
$(this.refs.fileInput).focus().trigger('click');
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user