Skip to content

Instantly share code, notes, and snippets.

@dannon
Created August 23, 2022 01:28
Show Gist options
  • Save dannon/06e3b29505f2283f54c25e2f40a4fc41 to your computer and use it in GitHub Desktop.
Save dannon/06e3b29505f2283f54c25e2f40a4fc41 to your computer and use it in GitHub Desktop.
diff --git a/client/src/components/History/CurrentCollection/CollectionPanel.vue b/client/src/components/History/CurrentCollection/CollectionPanel.vue
index 271d759e73..77ea4c07fa 100644
--- a/client/src/components/History/CurrentCollection/CollectionPanel.vue
+++ b/client/src/components/History/CurrentCollection/CollectionPanel.vue
@@ -12,7 +12,6 @@
<section class="dataset-collection-panel d-flex flex-column">
<section>
<CollectionNavigation
- ref="collectionNav"
:history="history"
:selected-collections="selectedCollections"
v-on="$listeners" />
@@ -86,7 +85,8 @@ export default {
},
watch: {
history() {
- this.$refs.collectionNav.close();
+ // Send up event closing out selected collection on history change.
+ this.$emit("update:selected-collections", []);
},
},
methods: {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment