An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(ui): stop Firefox tab restore from switching theme to custom
Andras Bacsaief0108e8aa9b
diff --git a/.ai/lessons.md b/.ai/lessons.mdindex 091f8b933c..22b9b3295e 100644--- a/.ai/lessons.md+++ b/.ai/lessons.md@@ -107,3 +107,6 @@## Cached and stored state- `StandaloneDocker`/`SwarmDocker` `server` uses `Server::findCached()`, a per-process identity map that is flushed only when the `servers` row updates. A `ServerSetting` save does not flush it, so pass the current `Server` instance (`setRelation('server', $server)`) when generated output depends on just-saved settings.- Application deployments use the stored `custom_labels` when they exist. When a server-level setting changes the generated labels, regenerate the stored labels of read-only (`is_container_label_readonly_enabled`) applications, or a redeploy keeps the old labels.++## Keep browser form restore away from app state+- Firefox session restore writes saved input values back and fires a trusted `input` event. Add `autocomplete="off"` to inputs that only mirror client state (for example an Alpine-bound color picker), or their handlers run without a user action.diff --git a/resources/views/components/theme-controls/picker.blade.php b/resources/views/components/theme-controls/picker.blade.phpindex f4b1ede294..4f8dcc4537 100644--- a/resources/views/components/theme-controls/picker.blade.php+++ b/resources/views/components/theme-controls/picker.blade.php@@ -19,7 +19,9 @@<label class="flex cursor-pointer items-center gap-2.5 rounded-lg border border-neutral-200 p-2 transition-colors hover:border-neutral-300 dark:border-white/[0.08] dark:hover:border-white/[0.14]"><span class="relative size-8 shrink-0 overflow-hidden rounded-md border border-black/10 shadow-sm dark:border-white/15"><span class="absolute inset-0" :style="`background: ${themeColor}`"></span>- <input type="color" :value="themeColor" @input="previewThemeColor($event.target.value)"+ {{-- autocomplete="off": Firefox session restore otherwise replays this+ value with an input event and switches the theme to custom (#11813). --}}+ <input type="color" autocomplete="off" :value="themeColor" @input="previewThemeColor($event.target.value)"@change="saveThemeColor($event.target.value)" aria-label="Custom theme color"class="absolute inset-0 h-full w-full cursor-pointer opacity-0" /></span>