overleaf/services/web/frontend/js/features/source-editor/components/review-panel
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
..
editor-widgets Only display bulk actions for tracked changes when permitted (#18038) 2024-04-23 08:05:31 +00:00
entries Send operations to project-history when resolving/unresolving comments (#17540) 2024-04-10 08:04:08 +00:00
hooks
toolbar Add autoComplete="off" to React-controlled checkboxes (#18212) 2024-05-06 08:04:39 +00:00
types
utils Merge pull request #17525 from overleaf/ae-upgrade-prettier 2024-03-26 09:04:05 +00:00
add-comment-button.tsx
container.tsx
current-file-container.tsx Only display bulk actions for tracked changes when permitted (#18038) 2024-04-23 08:05:31 +00:00
nav.tsx
overview-container.tsx
overview-file.tsx
positioned-entries.tsx
review-panel.tsx Reduce review panel calls to Trans (#17385) 2024-03-07 16:30:36 +00:00
toggler.tsx
upgrade-track-changes-modal.tsx [web] Use React hooks to get split-test variants instead of getSplitTestVariant (getMeta) (#18133) 2024-05-01 08:04:55 +00:00