Skip to content

Commit

Permalink
Merge branch 'master' into labels-during-animation
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislawosinski authored Jan 20, 2021
2 parents 93fc2bf + 9ade716 commit 8d60ddc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ _Note: Gaps between patch versions are faulty, broken or test releases._
* Keep treemap labels visible during zooming animations for better user experience ([#414](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/414) by [@
stanislawosinski](https://github.com/stanislawosinski))

* **Bug Fix**
* Don't show an empty tooltip when hovering over the FoamTree attribution group or between top-level groups ([#413](https://github.com/webpack-contrib/webpack-bundle-analyzer/pull/413) by [@
stanislawosinski](https://github.com/stanislawosinski))

## 4.3.0

* **Improvement**
Expand Down
7 changes: 5 additions & 2 deletions client/components/Treemap.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,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 8d60ddc

Please sign in to comment.