Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix download and raw buttons on Firefox #1316

Merged
merged 1 commit into from
Jul 13, 2018

Conversation

c-w
Copy link
Contributor

@c-w c-w commented Jul 13, 2018

On Firefox, the <button> element wrapping the <a> link swallows the
click event which leads the download and raw buttons to not perform any
action. Note that this same behavior does not reproduce on Chrome.
Switching the <button> to a <div> fixes the behavior on Firefox
while still maintaining the same styling as before and also works on
Chrome.

This issue was reported by @taupalosaurus

On Firefox, the `<button>` element wrapping the `<a>` link swallows the
click event which leads the download and raw buttons to not perform any
action. Note that this same behavior does not reproduce on Chrome.
Switching the `<button>` to a `<div>` fixes the behavior on Firefox
while still maintaining the same styling as before and also works on
Chrome.
Copy link
Member

@colinschoen colinschoen left a comment

Choose a reason for hiding this comment

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

LGTM

@colinschoen colinschoen merged commit 0cc9ef8 into master Jul 13, 2018
@colinschoen colinschoen deleted the bug/c-w/download-button-firefox branch July 13, 2018 18:11
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