Skip to content

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.

3 participants