I am using React Semantic UI, and I have simple Register Form. I want browser ask user Do you want to save password for this website?
after User submits the form, because now when I send the form it just does my sendLoginRequest
and after processing the requests that's it. I was trying to mark autoComplete etc. Nothing helped. How can I solve it? Thanks.
sendLoginRequest = () => {
...
}
render() {
return (
<Fragment>
<Form onSubmit={this.sendLoginRequest}>
<Form.Input
required
label="Name"
type="text"
placeholder="Name"
name="name"
onChange={this.handleChange}
{...this.state.errors.name}
/>
<Form.Input
required
label="Email"
type="email"
placeholder="Email"
name="email"
onChange={this.handleChange}
{...this.state.errors.email}
/>
<Form.Input
required
label="Password"
type="password"
placeholder="Password"
autoComplete="new-password"
name="password"
onChange={this.handleChange}
{...this.state.errors.password}
/>
<Form.Input
autoComplete="new-password"
required
label="Repeat Password"
type="password"
placeholder="Again Password"
name="repeatPassword"
onChange={this.handleChange}
{...this.state.errors.repeatPassword}
/>
<Button type='submit'>Submit</Button>
</Form>
<Spinner visible={this.state.spinner} />
</Fragment>
)
}