TanStackT
TanStack2mo ago
4 replies
popular-magenta

<input type="password"> has not <form> tag, browser warning

Hello, am I the first one that tries to put an <input type="password" /> inside a TanStack Form? My browser is complaining because there is no <form> tag:
[DOM] Password field is not contained in a form
I am using form.AppForm, I guess I have to replace it with a
<form
  onSubmit={(e) => {
    e.preventDefault()
    e.stopPropagation()
    form.handleSubmit()
  }}
>

or use a mix of both? I don't know what to do 🥸
Was this page helpful?