diff options
author | DorraJaouad <dorra.jaoued7@gmail.com> | 2023-06-19 08:31:41 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-02 14:12:37 +0000 |
commit | fb6be946f13e7d12c2bd332cdba7edbb12f23b86 (patch) | |
tree | c248ac389871ddc8d7a0a14030c8f3370d4c45ff /src/components/LeftSidebar/SearchBox/SearchBox.vue | |
parent | fe6ab449790dadbe7e6350083122ddd592475ee6 (diff) |
Added z-index and reorder elements, code improv
Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
Diffstat (limited to 'src/components/LeftSidebar/SearchBox/SearchBox.vue')
-rw-r--r-- | src/components/LeftSidebar/SearchBox/SearchBox.vue | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/components/LeftSidebar/SearchBox/SearchBox.vue b/src/components/LeftSidebar/SearchBox/SearchBox.vue index 5c4e4c471..37d801cb0 100644 --- a/src/components/LeftSidebar/SearchBox/SearchBox.vue +++ b/src/components/LeftSidebar/SearchBox/SearchBox.vue @@ -26,8 +26,7 @@ :label="placeholderText" :show-trailing-button="isSearching" trailing-button-icon="close" - @blur="isFocused(false)" - @focus="isFocused(true)" + v-on="$listeners" @trailing-button-click="abortSearch" @keypress.enter="handleSubmit"> <Magnify :size="16" /> @@ -105,19 +104,6 @@ export default { EventBus.$off('route-change', this.focusInputIfRoot) }, methods: { - isFocused(value){ - if (value){ - if (this.localValue != t('spreed','is:mentioned') & this.localValue != t('spreed','is:unread')){ - this.$emit('focus') - } - } - else { - this.$emit('focusCancel') - } - - - }, - // Focus the input field of the searchbox component. focusInput() { this.$refs.searchConversations.$el.focus() |