- 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.
18 lines
845 B
JavaScript
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',
|
|
})
|