feat: add autocomplete attributes to email and password inputs in FormNewUser
This commit is contained in:
parent
ee670581e7
commit
024059cee3
2 changed files with 9 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ export function DataTableToolbar<TData>(props: {
|
|||
{searchColumn &&
|
||||
(searchColumn.columnName ? (
|
||||
<Input
|
||||
className="mt-0 h-8 w-[150px]"
|
||||
className="mt-0 h-8 w-37.5"
|
||||
onChange={(event) =>
|
||||
table
|
||||
.getColumn(searchColumn.columnName)
|
||||
|
|
@ -51,7 +51,7 @@ export function DataTableToolbar<TData>(props: {
|
|||
/>
|
||||
) : (
|
||||
<Input
|
||||
className="mt-0 h-8 w-[150px]"
|
||||
className="mt-0 h-8 w-37.5"
|
||||
onChange={(event) =>
|
||||
table.setGlobalFilter(String(event.target.value))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -132,7 +132,12 @@ export const FormNewUser = ({
|
|||
<FormMessage />
|
||||
</div>
|
||||
<FormControl>
|
||||
<Input placeholder="esempio@email.com" {...field} id="email" />
|
||||
<Input
|
||||
placeholder="esempio@email.com"
|
||||
{...field}
|
||||
autoComplete="off"
|
||||
id="email"
|
||||
/>
|
||||
</FormControl>
|
||||
</FormItem>
|
||||
)}
|
||||
|
|
@ -178,6 +183,7 @@ export const FormNewUser = ({
|
|||
{...field}
|
||||
aria-describedby="password-strength"
|
||||
aria-invalid={form.getFieldState("password").invalid}
|
||||
autoComplete="new-password"
|
||||
className="pe-9"
|
||||
id="password"
|
||||
onChange={async (e) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue