Skip to content

Commit 1ac465c

Browse files
committed
Add responsive support for the force-use-infinite-wrapper property #102
1 parent 8b47b2d commit 1ac465c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/InfiniteLoading.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,13 @@
182182
this.$emit('$InfiniteLoading:reset', { target: this });
183183
},
184184
};
185+
186+
/**
187+
* watch for the `force-use-infinite-wrapper` property
188+
*/
189+
this.$watch('forceUseInfiniteWrapper', () => {
190+
this.scrollParent = this.getScrollParent();
191+
});
185192
},
186193
/**
187194
* To adapt to keep-alive feature, but only work on Vue 2.2.0 and above, see: https://vuejs.org/v2/api/#keep-alive

0 commit comments

Comments
 (0)