overleaf/services/web/frontend/js
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
..
directives
features Add autoComplete="off" to React-controlled checkboxes (#18212) 2024-05-06 08:04:39 +00:00
ide Merge pull request #18140 from overleaf/ae-log-rules 2024-05-01 08:04:27 +00:00
infrastructure
main
modules
pages Merge pull request #18170 from overleaf/ae-token-access-page 2024-05-03 08:05:01 +00:00
services
shared Merge pull request #18170 from overleaf/ae-token-access-page 2024-05-03 08:05:01 +00:00
utils
vendor/libs
base.js
dev-toolbar.js
i18n.js
ide-detached.js
ide.js
libraries.js
main.js
marketing.js Merge pull request #18195 from overleaf/revert-18120-td-bs5-load-js 2024-05-03 08:04:16 +00:00
tracing.js