Skip to content
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

Expanded state of row not maintained if a row is inserted before it #715

Closed
1 task done
robgaston1 opened this issue May 29, 2020 · 1 comment
Closed
1 task done
Labels

Comments

@robgaston1
Copy link
Contributor

robgaston1 commented May 29, 2020

Issue Type (delete the irrelevant ones)

  • Bug

Specs

What version are you using?
2.19.2
What browser?
Chrome

Expected Behavior

What did you expect to happen?
If you have rows expanded in a grouped table, vue-good-table will keep them expanded if you add a row to the end. However, we have use cases that require us to insert a row in the middle of the table, not just always at the end.

Actual Behavior

What actually happened?
If you had one row in a table that was expanded, and then added a row, then the original row that was expanded becomes row 2 and collapses. The newly added row that at index 0 automatically expands because it takes the place of the first row.

Steps to Reproduce the Problem

Please detail your steps here

  1. Try out the fiddle, it has steps (as above) on the page

jsfiddle

you can see this issue in action here

@xaksis
Copy link
Owner

xaksis commented Jun 24, 2020

Should be fixed now with v2.19.5

@xaksis xaksis closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants