We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259b63a commit 0198e20Copy full SHA for 0198e20
components/dash-core-components/src/components/Input.react.js
@@ -20,6 +20,11 @@ export default class Input extends PureComponent {
20
constructor(props) {
21
super(props);
22
23
+ this.state = {
24
+ pendingEvent: undefined,
25
+ value: '',
26
+ };
27
+
28
this.input = React.createRef();
29
30
this.onBlur = this.onBlur.bind(this);
@@ -33,7 +38,7 @@ export default class Input extends PureComponent {
33
38
34
39
UNSAFE_componentWillReceiveProps(nextProps) {
35
40
const {value} = this.input.current;
36
- if (this.state?.pendingEvent) {
41
+ if (this.state.pendingEvent) {
37
42
// avoid updating the input while awaiting a debounced event
43
return;
44
}
0 commit comments