Skip to content

Commit 5158014

Browse files
make the brush of the hovered panel active to enable deletion
1 parent b6787e9 commit 5158014

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/tracksLegendPanel/legend-multi-brush.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class LegendMultiBrush extends Component {
6565
}
6666

6767
createDefaults(domain) {
68-
let { hoveredLocationPanelIndex } = this.props;
6968
this.createBrush();
7069
let fragment = this.fragments[this.fragments.length - 1];
7170
this.update();
@@ -335,7 +334,9 @@ class LegendMultiBrush extends Component {
335334
return (
336335
nextProps.domains.toString() !== this.props.domains.toString() ||
337336
nextProps.width !== this.props.width ||
338-
nextState.hoveredChromo !== this.state.hoveredChromo
337+
nextState.hoveredChromo !== this.state.hoveredChromo ||
338+
nextProps.hoveredLocationPanelIndex !==
339+
this.props.hoveredLocationPanelIndex
339340
);
340341
}
341342

0 commit comments

Comments
 (0)