We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following code mutates the emails, which leads my state to be corrupted:
https://github.com/jsdevkr/react-multi-email/blob/c45542748e750757b5c27a6aec6f2c1aa6680584/src/react-multi-email/ReactMultiEmail.tsx#L109
this code should be correct:
removeEmail = (index: number) => { this.setState(prevState => ({ emails: prevState.emails.splice(index, 1), }), () => { if (this.props.onChange) { this.props.onChange(this.state.emails) } }) }
The text was updated successfully, but these errors were encountered:
Thank you. I will fix this code.
Sorry, something went wrong.
833a378
Version 0.4.0 has just been released. Thank you again.
v0.4.1 #14
0b6f1c0
v0.4.1 has just been released. Thank you again.
No branches or pull requests
Following code mutates the emails, which leads my state to be corrupted:
https://github.com/jsdevkr/react-multi-email/blob/c45542748e750757b5c27a6aec6f2c1aa6680584/src/react-multi-email/ReactMultiEmail.tsx#L109
this code should be correct:
The text was updated successfully, but these errors were encountered: