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
2.6.14
https://jsfiddle.net/5w1ydeu8/3/
The scoped slot should update.
The scoped slot doesn't update.
The text was updated successfully, but these errors were encountered:
Use v-if as a workaround:
v-if
<Foo v-if="frame === 'a'"> <template #default="x"> a </template> </Foo> <Foo v-if="frame === 'b'"> <template #default="x"> b </template> </Foo> <Foo v-if="frame === 'c'"> <template #default="x"> c </template> </Foo>
But it does have something wrong with v-else-if, I'm looking into it.
v-else-if
Sorry, something went wrong.
@JuniorTour Thanks, I'm aware of various workarounds (like using key), but I thought this behavior was odd.
key
fix(compiler): scoped slot with v-else-if not update (fix vuejs#12223)
4376341
Successfully merging a pull request may close this issue.
decademoon commentedAug 17, 2021
Version
2.6.14
Reproduction link
https://jsfiddle.net/5w1ydeu8/3/
Steps to reproduce
What is expected?
The scoped slot should update.
What is actually happening?
The scoped slot doesn't update.
The text was updated successfully, but these errors were encountered: