Skip to content

Commit 4954266

Browse files
committed
fix: apply same fix to <BgThemePicker>
1 parent 50d1abf commit 4954266

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/components/Settings/BgThemePicker.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ onPrehydrate(el => {
55
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}')
66
const id = settings.preferredBackgroundTheme
77
if (id) {
8-
const input = el.querySelector<HTMLInputElement>(`input[value="${id || 'neutral'}"]`)
8+
const input = el.querySelector<HTMLInputElement>(`input[value="${id}"]`)
99
if (input) {
1010
input.checked = true
11+
input.setAttribute('checked', '')
1112
}
1213
}
1314
})

0 commit comments

Comments
 (0)