diff options
| author | Henry Jameson <me@hjkos.com> | 2022-03-18 13:32:36 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-03-18 13:32:36 +0200 |
| commit | b3ed29ff02fa3db46a1ec7b5856f2c9131b8fa33 (patch) | |
| tree | 954156ac97987d2cac6ecc84c304acfa6543cb33 /src/hocs/with_load_more | |
| parent | 26bfbdc2add0c116c66b10e82f0814d180cc98c9 (diff) | |
made withLoadMore work... sorta
Diffstat (limited to 'src/hocs/with_load_more')
| -rw-r--r-- | src/hocs/with_load_more/with_load_more.jsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/hocs/with_load_more/with_load_more.jsx b/src/hocs/with_load_more/with_load_more.jsx index 6cd198ed..e57f9b20 100644 --- a/src/hocs/with_load_more/with_load_more.jsx +++ b/src/hocs/with_load_more/with_load_more.jsx @@ -82,14 +82,11 @@ const withLoadMore = ({ }, render () { const props = { - props: { - ...this.$props, - [childPropName]: this.entries - }, - on: this.$listeners, - scopedSlots: this.$scopedSlots + ...this.$props, + [childPropName]: this.entries + // on: this.$listeners // TODO fix listeners } - const children = Object.entries(this.$slots).map(([key, value]) => h('template', { slot: key }, value)) + const children = this.$slots return ( <div class="with-load-more"> <WrappedComponent {...props}> |
