-1

I'm working on making a login page for my react app using react-bootstrap.

However, how do I keep my form clear? For example, I have saved logins but on Facebook for example, the form is always clear:

enter image description here

This is how mine looks -

enter image description here

How can I make mine clear each time?

Edit: I tried autoComplete="off" as follow, but it did not work:

<form autoComplete="off">
  <FormGroup controlId="formUsername">
    <FormControl type="text" placeholder="username"/>
  </FormGroup>
  <FormGroup controlId="formPassword">
    <FormControl type="password" placeholder="password" value=""/>
  </FormGroup>
</form>
user1354934
  • 6,033
  • 10
  • 40
  • 61
  • The answer from the dupe that is important is here: http://stackoverflow.com/a/23234498/400654 TLDR: most modern browsers don't allow you to disable this functionality because it doesn't increase security. There are a few hacky workarounds and they're all listed in the answers within the dupe. – Kevin B Jul 01 '16 at 22:39

1 Answers1

0

You are looking for <form autocomplete="off">

zengr
  • 36,384
  • 37
  • 121
  • 187