Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.$slots.default is not a function in whenVisible.ts #2095

Open
y-l-g opened this issue Nov 20, 2024 · 0 comments · May be fixed by #2096
Open

this.$slots.default is not a function in whenVisible.ts #2095

y-l-g opened this issue Nov 20, 2024 · 0 comments · May be fixed by #2096

Comments

@y-l-g
Copy link

y-l-g commented Nov 20, 2024

Version:

  • @inertiajs/vue3 version: 2.x

Describe the problem:

When you have nothing in the default slot of the WhenVisible component, an error TypeError: this.$slots.default is not a function is thrown in the console.

It shouldn't throw an error because in some case, you want nothing in default slot (infinite scrolling for example).

Steps to reproduce:

Fresh install Laravel with breeze, update to inertia 2.x, use component WhenVisible with nothing in the default slot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant