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.
<BgThemePicker>
1 parent 50d1abf commit 4954266Copy full SHA for 4954266
app/components/Settings/BgThemePicker.vue
@@ -5,9 +5,10 @@ onPrehydrate(el => {
5
const settings = JSON.parse(localStorage.getItem('npmx-settings') || '{}')
6
const id = settings.preferredBackgroundTheme
7
if (id) {
8
- const input = el.querySelector<HTMLInputElement>(`input[value="${id || 'neutral'}"]`)
+ const input = el.querySelector<HTMLInputElement>(`input[value="${id}"]`)
9
if (input) {
10
input.checked = true
11
+ input.setAttribute('checked', '')
12
}
13
14
})
0 commit comments