Skip to content

Commit c95ae07

Browse files
committed
revert form of rangeslider relayout call (but it's still _guiRelayout)
so the event data still has {range: [min, max]} not {range[0]: min, ...} for backward compatibility. Note the latter form is no longer needed for guiEdits to work consistently
1 parent eb728fe commit c95ae07

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/rangeslider/draw.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,7 @@ function setDataRange(rangeSlider, gd, axisOpts, opts) {
286286
dataMax = clamp(opts.p2d(opts._pixelMax));
287287

288288
window.requestAnimationFrame(function() {
289-
var update = {};
290-
update[axisOpts._name + '.range[0]'] = dataMin;
291-
update[axisOpts._name + '.range[1]'] = dataMax;
292-
Registry.call('_guiRelayout', gd, update);
289+
Registry.call('_guiRelayout', gd, axisOpts._name + '.range', [dataMin, dataMax]);
293290
});
294291
}
295292

0 commit comments

Comments
 (0)