Skip to content

Fix: Early file downloading w/ custom onClick function#201

Open
eliasthompson wants to merge 1 commit intoreact-csv:masterfrom
eliasthompson:master
Open

Fix: Early file downloading w/ custom onClick function#201
eliasthompson wants to merge 1 commit intoreact-csv:masterfrom
eliasthompson:master

Conversation

@eliasthompson
Copy link
Copy Markdown

Should address #99 and #189.

…e download doesn't trigger too early (noticable on async onClicks)
Comment thread src/components/Link.js
return this.props.asyncOnClick
? this.handleAsyncClick(event)
: this.handleSyncClick(event);
} else {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would this change anything? it doesn't get called since the previous line has a return?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants