From 4615ca5f28c4e4110b8adeeaf7310df870e51dcd Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Thu, 13 Feb 2025 10:17:41 -0500 Subject: [PATCH] MM-62944 Fix fileupload settings not being clickable (#30182) Co-authored-by: Mattermost Build --- .../src/components/admin_console/file_upload_setting.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp/channels/src/components/admin_console/file_upload_setting.tsx b/webapp/channels/src/components/admin_console/file_upload_setting.tsx index 0e6207e317..5b956d6003 100644 --- a/webapp/channels/src/components/admin_console/file_upload_setting.tsx +++ b/webapp/channels/src/components/admin_console/file_upload_setting.tsx @@ -40,6 +40,10 @@ export default class FileUploadSetting extends React.PureComponent }; } + handleChooseClick = () => { + this.fileInputRef.current?.click(); + }; + handleChange = () => { const files = this.fileInputRef.current?.files; if (files && files.length > 0) { @@ -92,6 +96,7 @@ export default class FileUploadSetting extends React.PureComponent type='button' className='btn btn-tertiary' disabled={this.props.disabled} + onClick={this.handleChooseClick} >