MM-62944 Fix fileupload settings not being clickable (#30182)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f85a8c61a4
Коммит
4615ca5f28
@@ -40,6 +40,10 @@ export default class FileUploadSetting extends React.PureComponent<Props, State>
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handleChooseClick = () => {
|
||||||
|
this.fileInputRef.current?.click();
|
||||||
|
};
|
||||||
|
|
||||||
handleChange = () => {
|
handleChange = () => {
|
||||||
const files = this.fileInputRef.current?.files;
|
const files = this.fileInputRef.current?.files;
|
||||||
if (files && files.length > 0) {
|
if (files && files.length > 0) {
|
||||||
@@ -92,6 +96,7 @@ export default class FileUploadSetting extends React.PureComponent<Props, State>
|
|||||||
type='button'
|
type='button'
|
||||||
className='btn btn-tertiary'
|
className='btn btn-tertiary'
|
||||||
disabled={this.props.disabled}
|
disabled={this.props.disabled}
|
||||||
|
onClick={this.handleChooseClick}
|
||||||
>
|
>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='admin.file_upload.chooseFile'
|
id='admin.file_upload.chooseFile'
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user