Skip to content

Commit

Permalink
fix(default-theme): usage of correct lifecycle hook in SwTopNavigatio…
Browse files Browse the repository at this point in the history
…n.vue (#1444)
  • Loading branch information
CrystalG23 authored Apr 22, 2021
1 parent eaa435b commit e4bfcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/default-theme/src/components/SwTopNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default {
this.countVisibleCategories()
},
unmounted() {
beforeDestroy() {
window.removeEventListener("resize", this.countVisibleCategories)
},
Expand Down

1 comment on commit e4bfcac

@vercel
Copy link

@vercel vercel bot commented on e4bfcac Apr 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.