Skip to content

Commit 067aa57

Browse files
committed
Disconnect the resize observer on component destruction
1 parent c6a71fa commit 067aa57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Table.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ export default {
170170
this.observeThead();
171171
},
172172
173+
destroyed() {
174+
this.resizeObserver.disconnect();
175+
},
176+
173177
computed: {
174178
wrapperMargin() {
175179
if (!this.scrollable) {

0 commit comments

Comments
 (0)