Skip to content

Commit 334f904

Browse files
committed
fix: download button downloads index.html instead of spec with CLI
fixes #594
1 parent 23559fb commit 334f904

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/components/ApiInfo/ApiInfo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
8181
<DownloadButton
8282
download={downloadFilename}
8383
target="_blank"
84-
href={downloadLink || '#'}
84+
href={downloadLink}
8585
onClick={this.handleDownloadClick}
8686
>
8787
Download

src/components/ApiInfo/styled.elements.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const DownloadButton = styled.a`
2020
padding: 4px 8px 4px;
2121
display: inline-block;
2222
text-decoration: none;
23+
cursor: pointer;
2324
2425
${extensionsHook('DownloadButton')};
2526
`;

0 commit comments

Comments
 (0)