Skip to content

Commit

Permalink
fix(list-view): add "list" slot in Vue component
Browse files Browse the repository at this point in the history
fixes #4201
fixes #4195
  • Loading branch information
nolimits4web committed Jul 6, 2023
1 parent 27ae4e1 commit f4b24bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vue/components/list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
const { list: slotsList, default: slotsDefault } = slots;
const rootChildrenBeforeList = [];
const rootChildrenAfterList = [];
const ulChildren = slotsList || [];
const ulChildren = slotsList && typeof slotsList === 'function' ? [slotsList()] : [];
let wasUlChild = false;
if (slotsDefault) {
slotsDefault().forEach((vnode) => {
Expand Down

0 comments on commit f4b24bc

Please sign in to comment.