Skip to content

Commit

Permalink
Add debounce
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Sep 27, 2021
1 parent f9c4f55 commit 0931d35
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { InputNumber } from 'src/common/components';
import { t, styled } from '@superset-ui/core';
import { isEqual } from 'lodash';
import { isEqual, debounce } from 'lodash';
import ControlHeader from 'src/explore/components/ControlHeader';

const propTypes = {
Expand Down Expand Up @@ -56,7 +56,7 @@ export default class BoundsControl extends React.Component {
Number.isNaN(this.props.value[1]) ? '' : props.value[1],
],
};
this.onChange = this.onChange.bind(this);
this.onChange = debounce(this.onChange.bind(this), 300);
this.onMinChange = this.onMinChange.bind(this);
this.onMaxChange = this.onMaxChange.bind(this);
this.update = this.update.bind(this);
Expand Down

0 comments on commit 0931d35

Please sign in to comment.