fix: download button opens in new tab instead of downloading

fixes #1247
This commit is contained in:
Roman Hotsiy 2020-05-09 14:54:08 +03:00
parent 40a4e5fa47
commit b59faada82
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
<p> <p>
Download OpenAPI specification: Download OpenAPI specification:
<DownloadButton <DownloadButton
download={downloadFilename} download={downloadFilename || true}
target="_blank" target="_blank"
href={downloadLink} href={downloadLink}
onClick={this.handleDownloadClick} onClick={this.handleDownloadClick}