Skip to content

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

[Bug] Range brush width change should not trigger onBrush callback (#432)

Shan Heeb1f022a8ca5
diff --git a/src/components/common/range-brush.js b/src/components/common/range-brush.js
index 0b2e27fcc..e2466cbf8 100644
--- a/src/components/common/range-brush.js
+++ b/src/components/common/range-brush.js
@@ -42,7 +42,6 @@ export default class RangeBrush extends Component {
};
componentDidMount() {
- const {range: [min, max], value: [val0, val1]} = this.props;
// We want the React app to respond to brush state and vice-versa
// but d3-brush fires the same events for both user-initiated brushing
// and programmatic brushing (brush.move). We need these flags to
@@ -74,10 +73,6 @@ export default class RangeBrush extends Component {
});
this.root.call(this.brush);
-
- if (val0 === min && val1 === max) {
- this._reset();
- }
}
componentDidUpdate(prevProps) {