Skip to content

Avoid getting rows from nested tables#1818

Open
willystadnick wants to merge 1 commit into
Mottie:masterfrom
willystadnick:master
Open

Avoid getting rows from nested tables#1818
willystadnick wants to merge 1 commit into
Mottie:masterfrom
willystadnick:master

Conversation

@willystadnick
Copy link
Copy Markdown

I am working with nested tables and I noticed that the row index was wrong after the first row...

This happens because .find gets all descendant tr including the ones in nested tables, causing the row index to go bananas.

So my solution was to use .children instead, because it only includes tr from current tbody.

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.

1 participant