Skip to content

Commit

Permalink
Removed value from mobile search
Browse files Browse the repository at this point in the history
Reset value of search after change of route
  • Loading branch information
Lukas Hirt committed Sep 3, 2019
1 parent 894f7b2 commit 6c3e591
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/files/src/components/FilesAppBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
</oc-button>
</template>
<oc-button v-if="!publicPage()" class="uk-hidden@m" icon="search" aria-label="search" id="files-open-search-btn" @click="focusMobileSearchInput()"/>
<oc-drop toggle="#files-open-search-btn" boundary="#files-app-bar" pos="bottom-right" mode="click" class="uk-margin-remove uk-width-large">
<oc-search-bar ref="mobileSearch" @search="onFileSearch" :value="searchTerm" :label="searchLabel" :loading="isLoadingSearch" />
<oc-drop toggle="#files-open-search-btn" boundary="#files-app-bar" pos="bottom-right" mode="click" class="uk-margin-remove">
<oc-search-bar ref="mobileSearch" @search="onFileSearch" :label="searchLabel" :loading="isLoadingSearch" />
</oc-drop>
<oc-button id="oc-filter-list-btn" icon="filter_list" />
<file-filter-menu />
Expand Down Expand Up @@ -451,6 +451,7 @@ export default {
// TODO: Find a better solution
$route (to, from) {
this.actionsKey = Math.floor(Math.random() * 20)
this.$refs.value = null
}
}
}
Expand Down

0 comments on commit 6c3e591

Please sign in to comment.