You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was actually originally reported in issue #9658 for 2.6.8 and fixed in 781c705 but it seems the fix is not enough since the issue is still happening.
Filing as a regression since the old functionality will be discontinued in future releases.
The text was updated successfully, but these errors were encountered:
Note: this the expected behavior when using the new syntax (I forgot to clarify this in the commit that fixed #9658)
When using the new syntax, v-if on <template v-slot> has a higher priority. Conceptually, this v-if determines whether the slot is passed to the child, and has no access the the slot scope.
The solution is to use an additional <template v-if>inside the slot, which is more explicit.
…sion in Vue 2.6
The new v-slot directive, does not provide access to the slotProps to use in an v-if to overwrite the slot conditionally and have the default (fallback) slot content rendered otherwise.
See also these related issues:
vuejs/vue#10784vuejs/vue#9725vuejs/vue#9658
grolu
added a commit
to gardener/dashboard
that referenced
this issue
May 26, 2020
* Ensure that member roles currently not supported by the dashboard don't get lost when updating a member
Fixed autofocus for some dialogs
* changes as discussed
* revert
* Fix secret access in slots
* Revert "Fix secret access in slots"
This reverts commit 90cc626.
* Fixed secret page, had to move code to parent component due to regression in Vue 2.6
The new v-slot directive, does not provide access to the slotProps to use in an v-if to overwrite the slot conditionally and have the default (fallback) slot content rendered otherwise.
See also these related issues:
vuejs/vue#10784vuejs/vue#9725vuejs/vue#9658
Version
2.6.8
Reproduction link
http://jsfiddle.net/1pyxu5ch/1/
Steps to reproduce
The fiddle contains two parts.
Part 1 is the old working syntax.
Part 2 is the commented out new syntax that does not work anymore. Un-commenting this part triggers the error.
What is expected?
template is only included when the condition is true
What is actually happening?
syntax error
The fiddle uses 2.6.9 from https://unpkg.com/[email protected]/dist/vue.js but I could not find that version in the drop down so I put 2.6.8 instead.
This was actually originally reported in issue #9658 for 2.6.8 and fixed in 781c705 but it seems the fix is not enough since the issue is still happening.
Filing as a regression since the old functionality will be discontinued in future releases.
The text was updated successfully, but these errors were encountered: