Skip to content

Commit

Permalink
Make download config button in implenter tools fully clickable (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
kb019 authored Mar 17, 2024
1 parent eb3f5eb commit 8435603
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,13 @@ export const Configuration: React.FC<ConfigurationProps> = () => {
kind="secondary"
iconDescription="Download config"
renderIcon={(props) => <Download size={16} {...props} />}
onClick={(event: React.MouseEvent<HTMLAnchorElement>) => {
if ((event.target as HTMLAnchorElement).id != 'downloadConfigBtn')
document.getElementById('downloadConfigBtn')?.click();
}}
>
<a
id="downloadConfigBtn"
className={styles.downloadLink}
download="temporary_config.json"
href={window.URL.createObjectURL(tempConfigObjUrl)}
Expand Down

0 comments on commit 8435603

Please # to comment.