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

fix: filter out comment node to prevent sorting issue with collapsibl… #1223

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Belinda-advmeds
Copy link

Issue
When a table has collapsible items, or the table row has dynamic items depending on vue directive v-if/v-show,
the dragging behavior is wired and the sorting order is wrong.

Root Cause
In addition to the actual rows, the rows with v-if directive false will be comment nodes which causes the dragging target is wrong.

Solution
Filter out comment nodes to avoid the bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants