overleaf/services/web/frontend/js/features/source-editor
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
..
commands Remove completion and shortcut event logging (#15633) 2023-11-07 12:34:56 +00:00
components Add autoComplete="off" to React-controlled checkboxes (#18212) 2024-05-06 08:04:39 +00:00
context/review-panel Send operations to project-history when resolving/unresolving comments (#17540) 2024-04-10 08:04:08 +00:00
controllers Merge pull request #15046 from overleaf/jdt-gramr-ad 2023-12-05 09:04:25 +00:00
extensions [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00
hooks Ensure that ol_extensions_writefull Sentry tag is defined (#17366) 2024-03-07 16:30:15 +00:00
ide Move source editor out of module (#12457) 2023-04-13 08:40:56 +00:00
languages [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00
lezer-bibtex Merge pull request #15960 from overleaf/mj-bibtex-field-plus 2023-11-30 09:03:23 +00:00
lezer-latex [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00
themes Merge pull request #14980 from overleaf/jpa-debug-console 2023-09-28 08:04:12 +00:00
utils [visual] Add support for description list environments (#13460) 2024-05-03 08:04:53 +00:00