You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2019/06/08 01:00:04 UTC
[incubator-superset] 05/08: [dashboard] click tab anchor link
(#7640)
This is an automated email from the ASF dual-hosted git repository.
michellet pushed a commit to branch release--0.33
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit 33d9032b9dd0e3ea725e73b0769ad0d9f4e0e754
Author: Grace Guo <gr...@airbnb.com>
AuthorDate: Mon Jun 3 16:57:21 2019 -0700
[dashboard] click tab anchor link (#7640)
(cherry picked from commit f99ae1ad247298c8b8df3721768f69b13152aef0)
---
superset/assets/src/components/AnchorLink.jsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/assets/src/components/AnchorLink.jsx b/superset/assets/src/components/AnchorLink.jsx
index b33ee60..dac5e25 100644
--- a/superset/assets/src/components/AnchorLink.jsx
+++ b/superset/assets/src/components/AnchorLink.jsx
@@ -66,8 +66,7 @@ class AnchorLink extends React.PureComponent {
}
handleClickAnchorLink(ev) {
- ev.preventDefault();
- history.pushState(null, null, `#${this.props.anchorLinkId}`);
+ ev.stopPropagation();
}
render() {
@@ -76,6 +75,7 @@ class AnchorLink extends React.PureComponent {
<span
className="anchor-link-container"
id={anchorLinkId}
+ onClick={this.handleClickAnchorLink}
>
{showShortLinkButton &&
<URLShortLinkButton