mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-26 10:33:44 +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>
|
<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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user