diff --git a/src/components/mixins/entities.js b/src/components/mixins/entities.js index da117c5eb..f57964f1d 100644 --- a/src/components/mixins/entities.js +++ b/src/components/mixins/entities.js @@ -265,12 +265,14 @@ export const entitiesMixin = { this.$store.commit('SET_EDIT_LIST_SCROLL_POSITION', scrollPosition) }, - onSearchChange() { + onSearchChange(clearSelection = true) { if (!this.searchField) return this.isSearchActive = false const searchQuery = this.searchField.getValue() || '' this.applySearch(searchQuery) - this.clearSelection() + if (clearSelection) { + this.clearSelection() + } }, onChangeSortClicked(sortInfo) { diff --git a/src/components/modals/EditPlaylistModal.vue b/src/components/modals/EditPlaylistModal.vue index ee9eb9e53..7d4935263 100644 --- a/src/components/modals/EditPlaylistModal.vue +++ b/src/components/modals/EditPlaylistModal.vue @@ -220,7 +220,7 @@ export default { this.forClient = this.playlistToEdit.for_client ? 'true' : 'false' this.resetForm() setTimeout(() => { - this.$refs.nameField.focus() + this.$refs.nameField?.focus() }, 100) } } diff --git a/src/components/pages/AssetLibrary.vue b/src/components/pages/AssetLibrary.vue index fcfa6b563..2b6c0ddb8 100644 --- a/src/components/pages/AssetLibrary.vue +++ b/src/components/pages/AssetLibrary.vue @@ -1,5 +1,5 @@