Skip to content

Commit

Permalink
Fixed win IE download button logic #3
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Lozhkovoy committed Jun 8, 2018
1 parent abf4414 commit 2e5cd3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DownloadButton/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export default class DownloadButton extends Component {
close = () => this.setState({ open: false })

toggle = () => {
console.dir(`toggle`)
this.setState(prevState => ({
open: !prevState.open
}))
Expand All @@ -108,6 +107,7 @@ export default class DownloadButton extends Component {
value={link.title}
onClick={function(e) {
e.target.select()
e.stopPropagation();
}}
/>
)
Expand All @@ -133,8 +133,8 @@ export default class DownloadButton extends Component {
const currentOS = links[os]

return (
<Handler onClick={this.toggle}>
<Button innerRef={this.setRef}>
<Handler onClick={this.toggle} innerRef={this.setRef}>
<Button>
<Icon>
<img
src="/static/img/download-arrow.svg"
Expand Down

0 comments on commit 2e5cd3b

Please sign in to comment.