Skip to content

Commit

Permalink
fix: watch props open accordion
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandorjesus committed Jul 16, 2021
1 parent b88da90 commit 0a22d53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Accordion/Accordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ export default {
};
},
watch: {
open(val) {
this.openItem(val);
},
},
methods: {
openItem(current) {
if (current === this.currentIndex) {
Expand Down

0 comments on commit 0a22d53

Please sign in to comment.