mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(ui): stop Firefox tab restore from switching theme to custom
Closes #11813 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ea483d179b
commit
ef0108e8aa
@@ -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.
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user