I am using react-input-files, to implement a styled file input b
<InputFiles
accept="video/*"
onChange={this.uploadVideo}
>
<Button
className="btn-round"
color="default"
outline
disabled={this.state.userHasChosenAFile}
>
Styled input button
</Button>
</InputFiles>
After user chooses a file, I would like to disable the button. I managed to disable Button
component. But, the input itself still works.
In other words, even though the button seems disabled, when the user clicks on it the file choosing window gets opened and the user can choose a file again.
I would like both to make the button look disabled and prevent the user from uploading a file again.