fix(web): disable autocomplete on APIKeyAddForm and FilterAddForm (#1546)

* fix(web): disable autocomplete on APIKeyAddForm

* fix: add data-1p-ignore to FilterAddForm
This commit is contained in:
soup 2024-05-09 09:17:59 +02:00 committed by GitHub
parent 5bae500a86
commit 9c8c4a9ab2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View file

@ -127,6 +127,8 @@ export function FilterAddForm({ isOpen, toggle }: filterAddFormProps) {
{...field} {...field}
id="name" id="name"
type="text" type="text"
data-1p-ignore
autoComplete="off"
className="block w-full shadow-sm sm:text-sm rounded-md border py-2.5 focus:ring-blue-500 dark:focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-500 border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-815 dark:text-gray-100" className="block w-full shadow-sm sm:text-sm rounded-md border py-2.5 focus:ring-blue-500 dark:focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-500 border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-815 dark:text-gray-100"
/> />

View file

@ -116,6 +116,8 @@ export function APIKeyAddForm({ isOpen, toggle }: apiKeyAddFormProps) {
{...field} {...field}
id="name" id="name"
type="text" type="text"
data-1p-ignore
autoComplete="off"
className="block w-full shadow-sm sm:text-sm focus:ring-blue-500 dark:focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-500 rounded-md border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-815 dark:text-gray-100" className="block w-full shadow-sm sm:text-sm focus:ring-blue-500 dark:focus:ring-blue-500 focus:border-blue-500 dark:focus:border-blue-500 rounded-md border-gray-300 dark:border-gray-700 bg-gray-100 dark:bg-gray-815 dark:text-gray-100"
/> />
{meta.touched && meta.error && <span className="block mt-2 text-red-500">{meta.error}</span>} {meta.touched && meta.error && <span className="block mt-2 text-red-500">{meta.error}</span>}