From 2198244a6587b6abcd7144e22fb7c51c63eaf5e2 Mon Sep 17 00:00:00 2001 From: Nathan Bolender Date: Wed, 14 Oct 2020 11:06:11 -0400 Subject: [PATCH] [MM-9922] Hide tooltip for internal links (channels, timestamps, etc.) (#1386) * Hide tooltip for internal links (channels, timestamps, etc.) * Only hide tooltip for internal links on the *current* team --- src/browser/components/MainPage.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/components/MainPage.jsx b/src/browser/components/MainPage.jsx index 8f2def05..e2e8181c 100644 --- a/src/browser/components/MainPage.jsx +++ b/src/browser/components/MainPage.jsx @@ -526,7 +526,7 @@ export default class MainPage extends React.Component { handleTargetURLChange = (targetURL) => { clearTimeout(this.targetURLDisappearTimeout); - if (targetURL === '') { + if (targetURL === '' || this.parseDeeplinkURL(targetURL, [this.props.teams[this.state.key]])) { // Do not show URL for internal links on current team // set delay to avoid momentary disappearance when hovering over multiple links this.targetURLDisappearTimeout = setTimeout(() => { this.setState({targetURL: ''});