-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Dynamic props not working with slots after 2.6x update. #9444
Closed
DotNetGit opened this issue
Feb 6, 2019
· 3 comments
· Fixed by tghelere/valorize-vidas#3, tghelere/DeliVuery#15, tghelere/vue-tetris#1, tghelere/dailymages#1 or tghelere/vuestore#3
Closed
Dynamic props not working with slots after 2.6x update. #9444
DotNetGit opened this issue
Feb 6, 2019
· 3 comments
· Fixed by tghelere/valorize-vidas#3, tghelere/DeliVuery#15, tghelere/vue-tetris#1, tghelere/dailymages#1 or tghelere/vuestore#3
Labels
Comments
Take the time to provide a boiled down repro thank you! |
Able to reproduce... funny that this even worked in 2.5.x (when it shouldn't) and somehow broke in 2.6 (when it should)! |
@yyx990803 , Thanks a lot. |
This was referenced Aug 29, 2019
This was referenced Sep 22, 2019
Lostlover
pushed a commit
to Lostlover/vue
that referenced
this issue
Dec 10, 2019
This was referenced Jan 20, 2020
This was referenced Feb 6, 2020
Open
This was referenced Mar 4, 2020
This was referenced Apr 15, 2020
This was referenced May 4, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.6.2
Reproduction link
no link
Steps to reproduce
Create component with slot, add dynamic prop "itemName" to slot like this:
<slot :[itemName]="item" name="item-content" />
What is expected?
Dynamic prop is binded to the slot.
What is actually happening?
Dynamic prop is not binded to the slot.
I used the syntax below for a long time until the update 2.62:
<slot :[itemName]="item" name="item-content" />
After the update it is not working, I had to change it across all projects to the following:
<slot v-bind="{ [itemName]: item }" name="item-content" />
But the docs from here told that the first snippet has a valid syntax.
What is wrong with dynamic props or slots or maybe with them both or just this syntax do not work anymore?
Regards.
The text was updated successfully, but these errors were encountered: