fix undesired search suggestions popup

This commit is contained in:
stecorb 2020-08-25 00:04:59 +02:00
parent feea541fdb
commit 0262cbfb54
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ export default Vue.extend({
const searchContainer = $('.searchContainer').get(0) const searchContainer = $('.searchContainer').get(0)
searchContainer.blur() searchContainer.blur()
searchContainer.style.display = 'none' searchContainer.style.display = 'none'
} else {
const searchInput = $('.searchInput input').get(0)
searchInput.blur()
} }
this.$store.dispatch('getVideoIdFromUrl', query).then((result) => { this.$store.dispatch('getVideoIdFromUrl', query).then((result) => {