diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-12-17 09:21:06 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-12-17 09:21:06 +0100 |
commit | b4a3c6758254893311d8d200af1d2aea34a9f3ca (patch) | |
tree | 110ebfe26039fc94de923e95ad4d2bf61a467464 | |
parent | d027f7862366d50397cd035649deb5600367987d (diff) |
Fix render issue on search
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r-- | src/components/ContactsList.vue | 5 | ||||
-rw-r--r-- | src/views/Contacts.vue | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/components/ContactsList.vue b/src/components/ContactsList.vue index e433c410..e2475baf 100644 --- a/src/components/ContactsList.vue +++ b/src/components/ContactsList.vue @@ -21,14 +21,13 @@ --> <template> - <transition-group id="contacts-list" :class="{'icon-loading': loading, showdetails: selectedContact}" class="app-content-list" - name="list" tag="div"> + <div id="contacts-list" :class="{'icon-loading': loading, showdetails: selectedContact}" class="app-content-list"> <!-- same uid can coexists between different addressbooks so we need to use the addressbook id as key as well --> <contacts-list-item v-for="(contact, index) in list" :key="contact.key" :contact="contacts[contact.key]" :search-query="searchQuery" :list="list" :index="index" @deleted="selectContact" /> - </transition-group> + </div> </template> <script> diff --git a/src/views/Contacts.vue b/src/views/Contacts.vue index b90c8370..7c86dffb 100644 --- a/src/views/Contacts.vue +++ b/src/views/Contacts.vue @@ -390,7 +390,7 @@ export default { this.searchQuery = query }, resetSearch() { - this.search('') + this.searchQuery = '' }, /** |