File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -246,7 +246,6 @@ function getButtonGroups(gd) {
246
246
enableHover ( 'hoverClosestGl2d' ) ;
247
247
enableHover ( 'hoverClosestPie' ) ;
248
248
} else if ( b === 'v1hovermode' ) {
249
- enableHover ( 'toggleHover' ) ;
250
249
enableHover ( 'hoverClosestCartesian' ) ;
251
250
enableHover ( 'hoverCompareCartesian' ) ;
252
251
enableHover ( 'hoverClosestGeo' ) ;
Original file line number Diff line number Diff line change @@ -1642,7 +1642,7 @@ describe('ModeBar', function() {
1642
1642
] ) ;
1643
1643
} )
1644
1644
. then ( function ( ) {
1645
- expect ( countButtons ( ) ) . toBe ( initial + 4 , 'skip duplicates' ) ;
1645
+ expect ( countButtons ( ) ) . toBe ( initial + 5 , 'skip duplicates' ) ;
1646
1646
1647
1647
return Plotly . relayout ( gd , 'modebar.add' , [
1648
1648
'drawline' ,
@@ -1656,6 +1656,13 @@ describe('ModeBar', function() {
1656
1656
} )
1657
1657
. then ( function ( ) {
1658
1658
expect ( countButtons ( ) ) . toBe ( initial ) ;
1659
+
1660
+ return Plotly . relayout ( gd , 'modebar.add' , [
1661
+ 'togglehover'
1662
+ ] ) ;
1663
+ } )
1664
+ . then ( function ( ) {
1665
+ expect ( countButtons ( ) ) . toBe ( initial + 1 , 'add togglehover' ) ;
1659
1666
} )
1660
1667
. then ( done , done . fail ) ;
1661
1668
} ) ;
You can’t perform that action at this time.
0 commit comments