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 &&
|
||||||
(searchColumn.columnName ? (
|
(searchColumn.columnName ? (
|
||||||
<Input
|
<Input
|
||||||
className="mt-0 h-8 w-[150px]"
|
className="mt-0 h-8 w-37.5"
|
||||||
onChange={(event) =>
|
onChange={(event) =>
|
||||||
table
|
table
|
||||||
.getColumn(searchColumn.columnName)
|
.getColumn(searchColumn.columnName)
|
||||||
|
|
@ -51,7 +51,7 @@ export function DataTableToolbar<TData>(props: {
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<Input
|
<Input
|
||||||
className="mt-0 h-8 w-[150px]"
|
className="mt-0 h-8 w-37.5"
|
||||||
onChange={(event) =>
|
onChange={(event) =>
|
||||||
table.setGlobalFilter(String(event.target.value))
|
table.setGlobalFilter(String(event.target.value))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,12 @@ export const FormNewUser = ({
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
</div>
|
</div>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Input placeholder="esempio@email.com" {...field} id="email" />
|
<Input
|
||||||
|
placeholder="esempio@email.com"
|
||||||
|
{...field}
|
||||||
|
autoComplete="off"
|
||||||
|
id="email"
|
||||||
|
/>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
|
|
@ -178,6 +183,7 @@ export const FormNewUser = ({
|
||||||
{...field}
|
{...field}
|
||||||
aria-describedby="password-strength"
|
aria-describedby="password-strength"
|
||||||
aria-invalid={form.getFieldState("password").invalid}
|
aria-invalid={form.getFieldState("password").invalid}
|
||||||
|
autoComplete="new-password"
|
||||||
className="pe-9"
|
className="pe-9"
|
||||||
id="password"
|
id="password"
|
||||||
onChange={async (e) => {
|
onChange={async (e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue