overleaf/services/web/frontend/js/features/group-management/components/members-table
Antoine Clausse 2f99e3ccf1 Add autoComplete="off" to React-controlled checkboxes (#18212)
Fixes https://github.com/overleaf/internal/issues/18144

Browsers use a [bfcache](https://web.dev/articles/bfcache) (Back/forward cache) which restores form data on navigation. Unfortunately, it causes checkbox appearances not to respect our React states.

Setting `autoComplete="off"` on checkboxes mitigates this problem. (From https://stackoverflow.com/questions/299811/why-does-the-checkbox-stay-checked-when-reloading-the-page)

Another solution could be to set a `Cache-Control: no-store` header, but this might additionnal undesired consequences.

GitOrigin-RevId: 7d3cceb1c818ad70de7e806ea6d714ffc8bffb4a
2024-05-06 08:04:39 +00:00
..
dropdown-button.tsx Merge pull request #17683 from overleaf/jel-unlink 2024-04-04 08:04:45 +00:00
list-alert.tsx Merge pull request #17683 from overleaf/jel-unlink 2024-04-04 08:04:45 +00:00
managed-user-status.tsx Use sliced MaterialSymbolsRounded font (#16994) 2024-02-16 09:04:36 +00:00
member-row.tsx Merge pull request #17908 from overleaf/ii-bs5-badge 2024-04-22 08:04:07 +00:00
members-list.tsx Merge pull request #17683 from overleaf/jel-unlink 2024-04-04 08:04:45 +00:00
offboard-managed-user-modal.tsx Merge pull request #16874 from overleaf/jdt-me-learn-links-new-tab 2024-02-06 09:03:57 +00:00
select-all-checkbox.tsx Add autoComplete="off" to React-controlled checkboxes (#18212) 2024-05-06 08:04:39 +00:00
select-user-checkbox.tsx Add autoComplete="off" to React-controlled checkboxes (#18212) 2024-05-06 08:04:39 +00:00
sso-status.tsx Use sliced MaterialSymbolsRounded font (#16994) 2024-02-16 09:04:36 +00:00
unlink-user-modal.tsx Merge pull request #17728 from overleaf/jel-fix-member-view-update 2024-04-05 08:04:00 +00:00