A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/issues/3919 below:

<b-table> empty scoped slot renders unwanted default value · Issue #3919 · bootstrap-vue/bootstrap-vue · GitHub

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
  1. Create a table with a scoped slot.
  2. Leave the slot empty or add a v-if
  3. If the v-if is not met and the slot is empty it will display the default content.
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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4