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

Rows not always rendered in order. #221

Closed
andylhansen opened this issue Aug 30, 2017 · 1 comment
Closed

Rows not always rendered in order. #221

andylhansen opened this issue Aug 30, 2017 · 1 comment
Labels

Comments

@andylhansen
Copy link

Is it expected behavior for table rows to not always be rendered in order? They visually appear in order, but in the DOM, they are not in order.
I took a screenshot to illustrate the problem:
image

In the image, the rows with indices 22, 21, and 23 are the first children of FixedDataTableBufferedRows. I would expect that the rows would be rendered in order of index.

This is giving me problems because I am trying to style a border-top on each row, but if they are out of order, then the background from one row covers up the border of another.

Is there any way to fix this?

@wcjordan
Copy link
Member

This is done as a performance enhancement so we can recycle rows and reduce the number of react mounts and unmounts. We don't support any alternative nor do I think we will.

pradeepnschrodinger added a commit that referenced this issue May 31, 2022
Order cells in the DOM by row-major order.
We use aria row index for the sort criteria.
pradeepnschrodinger added a commit that referenced this issue May 31, 2022
Order cells in the DOM by row-major order.
We use aria row index for the sort criteria.
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

2 participants