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(ComponentExample): fix href in copy link button #2792

Merged
merged 2 commits into from
May 13, 2018
Merged

Conversation

layershifter
Copy link
Member

Fixes #2770.

this.setHashAndScroll()
copyToClipboard(location.href)
copyToClipboard(window.location.href)
Copy link
Member Author

Choose a reason for hiding this comment

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

We made push to history in setHashAndScroll, so we can simply grab href from window.location

@codecov-io
Copy link

codecov-io commented May 13, 2018

Codecov Report

Merging #2792 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2792   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files         160      160           
  Lines        2762     2762           
=======================================
  Hits         2755     2755           
  Misses          7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca13232...f4b51d4. Read the comment docs.

@layershifter layershifter merged commit 7feb85b into master May 13, 2018
@layershifter layershifter deleted the fix/docs-copy branch May 13, 2018 13:13
@levithomason
Copy link
Member

Released in [email protected].

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

Successfully merging this pull request may close these issues.

3 participants