Skip to content

Commit

Permalink
#400 fix externalquery remote mode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed Sep 14, 2018
1 parent c60a40a commit 0947895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@on-select-all="onSelectAll"
@on-sort-change="onSortChange"
@on-page-change="onPageChange"
@on-search="onSearch"
:columns="columns"
:rows="rows"
theme="black-rhino"
Expand All @@ -36,6 +37,7 @@
}"
:search-options="{
enabled: true,
externalQuery: searchTerm,
}">
<template slot="table-column" slot-scope="props">
<span v-if="props.column.label =='Name'">
Expand Down
2 changes: 2 additions & 0 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ export default {
handler() {
if (this.searchOptions.externalQuery !== undefined
&& this.searchOptions.externalQuery !== this.searchTerm) {
//* we need to set searchTerm to externalQuery first.
this.externalSearchQuery = this.searchOptions.externalQuery;
this.handleSearch();
}
this.initializeSearch();
Expand Down

0 comments on commit 0947895

Please sign in to comment.