Skip to content

Commit

Permalink
should fix issue 660 (#780)
Browse files Browse the repository at this point in the history
* should fix issue 660

* Cancel gitignore update

* Update VgtFilterRow.vue
  • Loading branch information
mp3000mp authored Jan 5, 2021
1 parent 89c33c1 commit 216be53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/components/VgtFilterRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<div
v-if="isFilterable(column)">
<input v-if="!isDropdown(column)"
:name="getName(column)"
type="text"
class="vgt-input"
:placeholder="getPlaceholder(column)"
Expand All @@ -24,6 +25,7 @@

<!-- options are a list of primitives -->
<select v-if="isDropdownArray(column)"
:name="getName(column)"
class="vgt-select"
:value="columnFilters[column.field]"
@change="updateFilters(column, $event.target.value)">
Expand All @@ -38,6 +40,7 @@

<!-- options are a list of objects with text and value -->
<select v-if="isDropdownObjects(column)"
:name="getName(column)"
class="vgt-select"
:value="columnFilters[column.field]"
@change="updateFilters(column, $event.target.value, true)">
Expand Down Expand Up @@ -134,6 +137,10 @@ export default {
return placeholder;
},
getName(column) {
return `vgt-${column.field}`;
},
updateFiltersOnEnter(column, value) {
if (this.timer) clearTimeout(this.timer);
this.updateFiltersImmediately(column.field, value);
Expand Down
2 changes: 1 addition & 1 deletion src/components/VgtHeaderRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default {
});
}
},
mounted() {
},
components: {
Expand Down

0 comments on commit 216be53

Please sign in to comment.