Skip to content

Commit

Permalink
fix this.$el被销毁替换后继续监听resize (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
leiyunkang7 authored May 29, 2023
1 parent b8a09a4 commit 7b7ccd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/item.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ const Wrapper = {

// since componet will be reused, so disptach when updated
updated () {
this.dispatchSizeChange()
// this.dispatchSizeChange()
this.resizeObserver.observe(this.$el)
},

beforeDestroy () {
Expand Down

0 comments on commit 7b7ccd9

Please sign in to comment.