setValue("");
clearTimeout(timeout);
};
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.value, props.label]);
useEffect(() => {
setSelfClearProp(props.selfClearProp);
handleChange({ target: { value: "" } } as any);
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [props.selfClearProp]);
const handleSubmit = (event: React.FormEvent<HTMLElement>) => {