Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
this.autonumeric = new AutoNumeric(this.input, this.props.value, {
...this.props.preDefined,
...this.props,
onChange: undefined,
onFocus: undefined,
onBlur: undefined,
onKeyPress: undefined,
onKeyUp: undefined,
onKeyDown: undefined,
watchExternalChanges: false,
});
}
componentWillUnmount() {
componentDidMount() {
const { currencySymbol, ...others } = this.props
this.autonumeric = new AutoNumeric(this.input, this.props.value, {
...this.props.preDefined,
...others,
onChange: undefined,
onFocus: undefined,
onBlur: undefined,
onKeyPress: undefined,
onKeyUp: undefined,
onKeyDown: undefined,
watchExternalChanges: false,
});
}
componentWillUnmount() {