Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[Bug] make sure the RangeBrush updates on slider range changes (#2047)
Jarrada67a7fcabe99
diff --git a/src/components/src/common/range-brush.tsx b/src/components/src/common/range-brush.tsxindex 509d372e1..f0e1a1084 100644--- a/src/components/src/common/range-brush.tsx+++ b/src/components/src/common/range-brush.tsx@@ -156,8 +156,8 @@ function RangeBrushFactory(): React.ComponentType<RangeBrushProps> {} = this.props;const [prevVal0, prevVal1] = prevProps.value;- if (prevProps.width !== width) {- // width change should not trigger this._brushed+ if (prevProps.width !== width || prevProps.range[0] !== this.props.range[0] || prevProps.range[1] !== this.props.range[1]) {+ // dimension change should not trigger this._brushedthis.moving = true;if (this.brush) this.root?.call(this.brush);this._move(val0, val1);