Skip to content

Commit

Permalink
docs(theme): make toggleTheme function work (#19888)
Browse files Browse the repository at this point in the history
  • Loading branch information
KnoX1568 authored May 28, 2024
1 parent 18d64fe commit d4fe9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/src/pages/en/features/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ import { useTheme } from 'vuetify'
const theme = useTheme()
function toggleTheme () {
theme.global.name = theme.global.current.dark ? 'light' : 'dark'
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
}
</script>
```
Expand Down

0 comments on commit d4fe9f5

Please sign in to comment.