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 c556823 commit feafbc0Copy full SHA for feafbc0
MeiliSearchBox.vue
@@ -82,7 +82,13 @@ export default {
82
},
83
84
updateTheme(options) {
85
- this.theme = options.enableDarkMode === true ? 'dark' : options.enableDarkMode === false ? 'light' : 'auto'
+ if (options.enableDarkMode === true) {
86
+ this.theme = 'dark'
87
+ } else if (options.enableDarkMode === false) {
88
+ this.theme = 'light'
89
+ } else {
90
+ this.theme = 'auto'
91
+ }
92
}
93
94
0 commit comments