-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TabItem Does Not Obey Ordering with v-for and key #1387
Labels
Comments
We get the same thing if we use ex. I'm working on it right now. I'm doing some tests, but should be able to make a PR tomorrow! |
service-paradis
added a commit
to service-paradis/buefy
that referenced
this issue
Jul 9, 2019
Add a fix to keep defined slots position for tabs
Merged
Created a PR that should solve this problem (#1535) |
service-paradis
added a commit
to service-paradis/buefy
that referenced
this issue
Dec 17, 2019
Add a fix to keep defined slots position for tabs
LeoMouyna
pushed a commit
to LeoMouyna/buefy
that referenced
this issue
Jan 6, 2020
LeoMouyna
pushed a commit
to LeoMouyna/buefy
that referenced
this issue
Jan 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the problem
Buefy version: v0.7.5
Vuejs version: v2.6.10
OS/Browser: MacOS 10.14.4/Chrome 73.0.3683.103
Description
When using
v-for
withkey
onb-tab-item
the order of the tabs is incorrect if items are removed and added back.Steps to reproduce
I've made a demo: https://codepen.io/Skinner927/pen/vwNYLp
ul
list (at the top under "Sorted:") uses the samekey
mechanism and is properly sorted.Expected behavior
For the order of tabs to be in the same order as the underlying array.
Actual behavior
Because
v-for
is only adding the missing elements,b-tab-item
'screated()
method always appends new items to the end of the tab list.The text was updated successfully, but these errors were encountered: