We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90ca00f commit 50d1abfCopy full SHA for 50d1abf
app/components/Settings/AccentColorPicker.vue
@@ -10,6 +10,13 @@ onPrehydrate(el => {
10
const input = el.querySelector<HTMLInputElement>(`input[value="${id}"]`)
11
if (input) {
12
input.checked = true
13
+ input.setAttribute('checked', '')
14
+ }
15
+ // Remove checked from the server-default (clear button, value="")
16
+ const clearInput = el.querySelector<HTMLInputElement>('input[value=""]')
17
+ if (clearInput) {
18
+ clearInput.checked = false
19
+ clearInput.removeAttribute('checked')
20
}
21
22
})
0 commit comments