Search code examples
reactjsinputautocompletefieldantd

How to disable autofill for antd input with react


Hello i tried to create a new form to add new user, this form contain an input 'username' & another one 'password', my probleme is when i open the form the field username and password get by default the user and password saved in browser , i tried to user autoComplete='false' but it doesn't work.

My question is how to disable this feature, any hint can be helpfull

This is how it looks this is how it looks


Solution

  • I fixed this problem by adding autoComplete="new-password" to the Input.Password

    <Input.Password placeholder="Mot de Passe" autoComplete="new-password" />