-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
<b-table> empty scoped slot renders unwanted default value #3919
Closed
Hiws opened this issue
Aug 20, 2019
· 2 comments
· Fixed by #3920, mariazevedo88/hash-generator-js#4 or tghelere/CL#8
Closed
<b-table> empty scoped slot renders unwanted default value #3919
Hiws opened this issue
Aug 20, 2019
· 2 comments
· Fixed by #3920, mariazevedo88/hash-generator-js#4 or tghelere/CL#8
Comments
Merged
19 tasks
Workaround: use a Fix will be available in 2.0.0 stable. Note that the data cell scoped slot names will be changing in 2.0.0 stable, due to issues and limitations with Vue's new |
BootstrapVue v2.0.0 stable has been released. See https://bootstrap-vue.js.org/docs/misc/changelog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If you have a scoped slot with conditional content, for example only showing something if an array has elements.
If the slot is completely empty it will render out the default value, which in this case would be
[]
which might not be wanted.Steps to reproduce the bug
Expected behavior
If the v-if is not be and the scoped slot is empty, it should not render anything.
Versions
Libraries:
Demo link
https://codepen.io/Hiws/pen/jONrbGX
The text was updated successfully, but these errors were encountered: