You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/07/03 17:37:03 UTC

[GitHub] [incubator-superset] graceguo-supercat commented on a change in pull request #7812: [dashboard] Fix URLShortLinkButton position after click anchor link

graceguo-supercat commented on a change in pull request #7812: [dashboard] Fix URLShortLinkButton position after click anchor link
URL: https://github.com/apache/incubator-superset/pull/7812#discussion_r300079372
 
 

 ##########
 File path: superset/assets/src/dashboard/components/gridComponents/Tabs.jsx
 ##########
 @@ -100,7 +101,14 @@ class Tabs extends React.PureComponent {
     }
   }
 
-  handleClickTab(tabIndex) {
+  handleClickTab(tabIndex, ev) {
+    const target = ev.target;
+    // special handler for clicking on anchor link (or whitespace nearby):
+    // only show URLShortLinkButton but do not change tab
+    if (ANCHOR_LINK_TAGNAMES.includes(target.tagName)) {
 
 Review comment:
   I added a CSS class. also added a unit test.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org