From a56310ba8f4fb7d8de7bed2a6f10c8c603558311 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 7 Apr 2017 14:18:46 -0400 Subject: PLT-6200 Fixed file upload button not working on iOS (#6013) --- webapp/components/file_upload.jsx | 20 ++++++++++++-------- webapp/sass/responsive/_mobile.scss | 9 ++------- 2 files changed, 14 insertions(+), 15 deletions(-) (limited to 'webapp') diff --git a/webapp/components/file_upload.jsx b/webapp/components/file_upload.jsx index d97b1ed3b..a0e7f5296 100644 --- a/webapp/components/file_upload.jsx +++ b/webapp/components/file_upload.jsx @@ -350,11 +350,16 @@ class FileUpload extends React.Component { const channelId = this.props.channelId || ChannelStore.getCurrentId(); const uploadsRemaining = Constants.MAX_UPLOAD_FILES - this.props.getFileCount(channelId); - const emojiSpan = (); - const filestyle = {visibility: 'hidden'}; + + let emojiSpan; + if (this.props.emojiEnabled) { + emojiSpan = ( + + ); + } return (
this.refs.fileInput.click()} /> 0 ? this.props.onClick : this.handleMaxUploadReached} multiple={multiple} accept={accept} />
- {this.props.emojiEnabled ? emojiSpan : ''} + {emojiSpan}
); } diff --git a/webapp/sass/responsive/_mobile.scss b/webapp/sass/responsive/_mobile.scss index e47ba26aa..96fb86843 100644 --- a/webapp/sass/responsive/_mobile.scss +++ b/webapp/sass/responsive/_mobile.scss @@ -33,14 +33,9 @@ .msg-typing { display: none; } - } - .post-create__container{ - .post-create-body { - .icon__postcontent_picker { - display:none; - top: -7px; - } + .icon--emoji-picker { + display: none; } } -- cgit v1.2.3-1-g7c22