diff options
author | DorraJaouad <dorra.jaoued7@gmail.com> | 2023-07-28 15:37:54 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-08-03 08:15:00 +0000 |
commit | 6a831e76aac9f8a9c0ecae20ec6c61d153c9fb6f (patch) | |
tree | bc3eb92842ff349547a640896473a21c85556a13 /src/components/LeftSidebar/SearchBox/SearchBox.vue | |
parent | 25a19a1fe22d38527f7b87d0735f530cf8d38afa (diff) |
Better animation
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 | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/components/LeftSidebar/SearchBox/SearchBox.vue b/src/components/LeftSidebar/SearchBox/SearchBox.vue index 0337678f9..c78e34309 100644 --- a/src/components/LeftSidebar/SearchBox/SearchBox.vue +++ b/src/components/LeftSidebar/SearchBox/SearchBox.vue @@ -26,7 +26,6 @@ :show-trailing-button="isFocused" trailing-button-icon="close" v-on="listeners" - @focus="handleFocus" @blur="handleBlur" @update:value="updateValue" @trailing-button-click="abortSearch" @@ -118,41 +117,6 @@ export default { */ abortSearch() { this.$emit('abort-search') - this.focus() - }, - - handleFocus(event) { - this.$emit('focus', event) - }, - handleBlur(event) { - console.log('inner blur') - if (Array.from(event.relatedTarget.classList).includes('input-field__clear-button')) { - event.preventDefault() - this.$refs.searchConversations.$el.querySelector('.input-field__clear-button').addEventListener('blur', (event) => { - console.log('trailing blur') - console.log(event) - // check if focus goes back to native input or outside, and proceed accordingly - }) - } else { - this.$emit('blur', event) - } - }, - - handleFocus(event) { - this.$emit('focus', event) - }, - handleBlur(event) { - console.log('inner blur') - if (Array.from(event.relatedTarget.classList).includes('input-field__clear-button')) { - event.preventDefault() - this.$refs.searchConversations.$el.querySelector('.input-field__clear-button').addEventListener('blur', (event) => { - console.log('trailing blur') - console.log(event) - // check if focus goes back to native input or outside, and proceed accordingly - }) - } else { - this.$emit('blur', event) - } }, handleBlur(event) { @@ -165,6 +129,7 @@ export default { this.$emit('blur', event) } }, + }, } </script> |