Skip to content

Commit

Permalink
Hide tooltip when hovering over the attribution group and between top…
Browse files Browse the repository at this point in the history
…-level groups.
  • Loading branch information
stanislawosinski committed Jan 19, 2021
1 parent 7ae61c7 commit 93e98aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/components/Treemap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,12 @@ export default class Treemap extends Component {
},
onGroupDoubleClick: preventDefault,
onGroupHover(event) {
// Ignoring hovering on `FoamTree` branding group
if (event.group && event.group.attribution) {
// Ignoring hovering on `FoamTree` branding group and the root group
if (event.group && (event.group.attribution || event.group === this.get('dataObject'))) {
event.preventDefault();
if (props.onMouseLeave) {
props.onMouseLeave.call(component, event);
}
return;
}

Expand Down

0 comments on commit 93e98aa

Please sign in to comment.