Skip to content

Commit 5415909

Browse files
committed
Fix cartesian hover toggle
The hover toggle button couldn't be enabled on cartesian plots because the later setup completely overwrote the initial allowed groups. So just make it add the cartesian buttons instead of replacing the groups completely.
1 parent e27ca3c commit 5415909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/modebar/manage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function getButtonGroups(gd) {
183183
// regardless of what other types are on the plot, since they'll all
184184
// just treat any truthy hovermode as 'closest'
185185
if(hasCartesian) {
186-
hoverGroup = ['toggleSpikelines', 'hoverClosestCartesian', 'hoverCompareCartesian'];
186+
hoverGroup.push('toggleSpikelines', 'hoverClosestCartesian', 'hoverCompareCartesian');
187187
}
188188
if(hasNoHover(fullData) || hasUnifiedHoverLabel) {
189189
hoverGroup = [];

0 commit comments

Comments
 (0)