Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

[Bug] Fix Range brush maximum update exceeds crashes (#1955)

Igor Dykhta47a184c69882
diff --git a/src/components/common/range-slider.tsx b/src/components/common/range-slider.tsx
index 26c1d0fa5..865f2fed0 100644
--- a/src/components/common/range-slider.tsx
+++ b/src/components/common/range-slider.tsx
@@ -121,14 +121,10 @@ export default function RangeSliderFactory(
componentDidMount() {
if (this.sliderContainer instanceof Element) {
- observeDimensions(this.sliderContainer, this._resize);
+ observeDimensions(this.sliderContainer, this._resize, 100);
}
}
- componentDidUpdate() {
- this._resize();
- }
-
componentWillUnmount() {
if (this.sliderContainer instanceof Element) {
unobserveDimensions(this.sliderContainer);