-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Slot with dynamic name attribute does not update contents #2535
Labels
Comments
lukewarlow
changed the title
Slot with name dynamic name attribute does not update contents
Slot with dynamic name attribute does not update contents
Oct 31, 2020
You need to add a <slot :name="activeTab" :key="activeTab"></slot> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Version
3.0.2
Reproduction link
https://codesandbox.io/s/elegant-silence-k52xk
Steps to reproduce
Go to https://codesandbox.io/s/elegant-silence-k52xk and click the tabs.
What is expected?
The contents of Tabs.vue's slot should change.
What is actually happening?
The contents of the first tab displays, but never changes.
I have the same code in a vue 2 sandbox and it works as expected. See https://codesandbox.io/s/hungry-hill-lf8xo.
I have looked but cannot find any documented reason why this wouldn't work the same in Vue 3.
The text was updated successfully, but these errors were encountered: