diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index 77f043c48bd39bbbb18c832da0a432d039e9281a..4d4981e5e828cec4df5f26cec6ae7b25444e250f 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -176,7 +176,7 @@ let self = this setTimeout(() => { - if (self.$vuetify.breakpoint.mdAndUp) self.$refs.autocomplete.$refs.input.select() + if (!self.$vuetify.noMouse) self.$refs.autocomplete.$refs.input.select() else self.$refs.autocomplete.$refs.input.blur() this.suggesting = false }, 1) @@ -186,7 +186,7 @@ mounted: function() { if (! this.$route.hash) { window.scrollTo(0,0) - if(this.$vuetify.breakpoint.mdAndUp) { + if(!this.$vuetify.noMouse) { this.$refs.autocomplete.focus() } diff --git a/src/plugins/vuetify.js b/src/plugins/vuetify.js index b004a608e561a54217ce07c71d9fba4184ce0e9c..74adb67568dda481c7dc9f1b6d893c23d27f2dc1 100644 --- a/src/plugins/vuetify.js +++ b/src/plugins/vuetify.js @@ -15,6 +15,7 @@ export default new Vuetify({ }, scrollBarWidth: 24, }, + noMouse: window.matchMedia('(hover: none)').matches, theme: { options: { customProperties: true