[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
This commit is contained in:
@@ -526,7 +526,7 @@ export default class MainPage extends React.Component {
|
|||||||
|
|
||||||
handleTargetURLChange = (targetURL) => {
|
handleTargetURLChange = (targetURL) => {
|
||||||
clearTimeout(this.targetURLDisappearTimeout);
|
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
|
// set delay to avoid momentary disappearance when hovering over multiple links
|
||||||
this.targetURLDisappearTimeout = setTimeout(() => {
|
this.targetURLDisappearTimeout = setTimeout(() => {
|
||||||
this.setState({targetURL: ''});
|
this.setState({targetURL: ''});
|
||||||
|
Reference in New Issue
Block a user