Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0822d5

Browse files
committed
Fix testing if double-click cleans selection in box/lasso mode [1852]
- Additionally add `hoverMode` to `closest` because with click-to-select a click would actually trigger a selection when hoverData is not empty. This would be the case when `hoverMode` is set to `x`.
1 parent 4b41e24 commit f0822d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/jasmine/tests/select_test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,7 @@ describe('@flaky Test select box and lasso in general:', function() {
635635
fig.layout.xaxis.range = [2, 8];
636636
fig.layout.yaxis.autorange = false;
637637
fig.layout.yaxis.range = [0, 3];
638+
fig.layout.hovermode = 'closest';
638639

639640
function _assert(msg, exp) {
640641
expect(gd.layout.xaxis.range)

0 commit comments

Comments
 (0)