Files
vps-tracker/src/lib/noBrowserSuggestProps.js
T
Denozordec 994dde2314 Refactor forms to disable browser suggestions and improve user experience
- Integrated `noBrowserSuggestProps` across multiple pages to prevent browser autocomplete suggestions on input fields.
- Updated form elements in `AccountsPage`, `BalancePage`, `PaymentsPage`, `ProvidersPage`, `ReportsPage`, `ResourcesPage`, `SettingsPage`, `TariffsPage`, `VpsPage`, and `ProjectSuggestInput` to enhance usability.
- Ensured consistent application of `autoComplete="off"` for select elements to improve form behavior.
2026-03-20 23:00:29 +07:00

18 lines
845 B
JavaScript

/**
* Отключает подсказки автозаполнения браузера и часто используемые хуки менеджеров паролей
* на произвольных текстовых полях (адреса, проекты, заметки и т.д.).
* Для полей пароля API используйте {@link passwordCredentialInputProps}.
*/
export const noBrowserSuggestProps = Object.freeze({
autoComplete: 'off',
'data-lpignore': 'true',
'data-1p-ignore': 'true',
'data-bwignore': 'true',
'data-form-type': 'other',
})
/** Поля пароля/секрета: не отключаем менеджеры паролей, только автоподстановку формы. */
export const passwordCredentialInputProps = Object.freeze({
autoComplete: 'new-password',
})