react-mailchimp-form
react-mailchimp-form copied to clipboard
Input reset when update component
[edit]This error happens when setState is called
When the component refreshes, the input loses focus and restarts, deleting what I typed
my code:
<Mailchimp
action={url}
fields={[
{
name: 'EMAIL',
placeholder: 'Endereço de e-mail',
type: 'email',
required: true
}
]}
messages={
{
sending: "Enviando...",
success: "Obrigado pela assinatura",
error: "Ocorreu um erro",
empty: "Por favor, digite um e-mail válido",
duplicate: "Este e-mail já foi cadastrado",
button: "Assine nosso newsletter"
}
}
className="newsletter-sign-input"
/>
The live version is at dt3-blog.dt3.firebaseapp.com, on home, in "Assine nossa nesletter
I'm having the same issue
same