mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 02:23:43 +03:00
fix: download button opens in new tab instead of downloading
fixes #1247
This commit is contained in:
parent
40a4e5fa47
commit
b59faada82
|
@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
|
|||
<p>
|
||||
Download OpenAPI specification:
|
||||
<DownloadButton
|
||||
download={downloadFilename}
|
||||
download={downloadFilename || true}
|
||||
target="_blank"
|
||||
href={downloadLink}
|
||||
onClick={this.handleDownloadClick}
|
||||
|
|
Loading…
Reference in New Issue
Block a user