From 0fd438bebc1a9cad27e3e0d74d0be894a4233eb9 Mon Sep 17 00:00:00 2001 From: Alexander Fedyashov Date: Sun, 13 May 2018 13:30:11 +0300 Subject: [PATCH] fix(ComponentExample): fix href in copy link button --- .../ComponentDoc/ComponentExample/ComponentExample.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/app/Components/ComponentDoc/ComponentExample/ComponentExample.js b/docs/app/Components/ComponentDoc/ComponentExample/ComponentExample.js index 85f011ca3b..72ca7924ec 100644 --- a/docs/app/Components/ComponentDoc/ComponentExample/ComponentExample.js +++ b/docs/app/Components/ComponentDoc/ComponentExample/ComponentExample.js @@ -109,9 +109,8 @@ class ComponentExample extends Component { } handleDirectLinkClick = () => { - const { location } = this.props this.setHashAndScroll() - copyToClipboard(location.href) + copyToClipboard(window.location.href) } handleMouseMove = _.throttle(