Skip to content

Commit 5244870

Browse files
committed
allow to have pre selected values
1 parent ec71786 commit 5244870

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

frontend/src/components/shared/MultipleFiltersDropdown.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<script>
2020
export default {
21-
props: ['options', 'name', 'position'],
21+
props: ['options', 'name', 'position', 'startingOptions'],
2222
data: () => ({
2323
closed: true,
2424
selectedFilters: [],
@@ -41,5 +41,10 @@ export default {
4141
this.closed = true;
4242
},
4343
},
44+
beforeMount() {
45+
if (this.startingOptions) {
46+
this.selectedFilters = this.startingOptions;
47+
}
48+
},
4449
};
4550
</script>

0 commit comments

Comments
 (0)