Disable Windows WebView autocompleting text fields "Saved data" #7120
-
Hey all, I'm curious if anyone knows of a way to disable Windows prompting autocompletes for random text fields? These input fields are pretty basic, and don't have the <input
id="title"
name="body"
className='...'
type="text"
/> |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Genuine question: Any reason for that? Because adding |
Beta Was this translation helpful? Give feedback.
-
What about a form? <form onSubmit={handleSubmit}>
<div className='border-2 border-slate-500 rounded p-2'>
<h2 className='text-xl font-medium'>Información Personal</h2>
<div className='form-control w-full mt-2'>
{image?.preview ? (
<div className='avatar'>
<div className='mask mask-squircle size-[130px]'>
<img src={image.preview} alt='Imagen del empleado' />
</div>
</div>
) : (
employee.nombre &&
employee.apellido && (
<div className='avatar placeholder'>
<div className='mask mask-squircle size-[130px] bg-neutral text-white'>
<span className='text-3xl'>
{employee.nombre[0]}
{employee.apellido[0]}
</span>
</div>
</div>
)
)}
<label htmlFor='imagen' className='label w-fit'>
<span className='label-text -mb-1'>Imagen</span>
</label>
<input
type='file'
id='imagen'
onChange={handleImageChange}
className='file-input file-input-bordered file-input-sm w-full max-w-md'
/>
</div>
<div className='flex gap-4'>
<div className='form-control w-full'>
<label htmlFor='nombre' className='label'>
<span className='label-text'>Nombre</span>
</label>
<input
type='text'
autoComplete='off'
id='nombre'
onChange={handleChange}
className='input input-bordered input-sm w-full max-w-md'
/>
</div>
<div className='form-control w-full'>
<label htmlFor='apellido' className='label'>
<span className='label-text'>Apellido</span>
</label>
<input
type='text'
autoComplete='off'
id='apellido'
onChange={handleChange}
className='input input-bordered input-sm w-full max-w-md'
/>
</div>
</div>
<div className='flex justify-between gap-4'>
<div className='form-control w-full'>
<label htmlFor='ci' className='label'>
<span className='label-text'>CI</span>
</label>
<input
type='text'
autoComplete='off'
id='ci'
className='input input-bordered input-sm w-full max-w-md'
/>
</div>
<div className='form-control w-full'>
<label htmlFor='nacionalidad' className='label'>
<span className='label-text'>Nacionalidad</span>
</label>
<input
type='text'
autoComplete='off'
id='nacionalidad'
className='input input-bordered input-sm w-full max-w-md'
/>
</div>
</div>
</div>
</form> |
Beta Was this translation helpful? Give feedback.
-
I tried the "nope" suggested here, and it also works. |
Beta Was this translation helpful? Give feedback.
Genuine question: Any reason for that? Because adding
autocomplete="off"
is how you disable this 😅