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

Table rows and columns reordering when headingRows or headingColums is set #10536

Merged
merged 10 commits into from
Sep 17, 2021

Conversation

dawidurbanski
Copy link
Contributor

@dawidurbanski dawidurbanski commented Sep 15, 2021

Suggested merge commit message (convention)

Fix (table): Make reordering table rows and columns possible without breaking view in tables with headingRows or headingColumns is set. Closes #10463.

@dawidurbanski dawidurbanski changed the title Ck/10463 table rows columns reordering Table rows and columns reordering when headingRows or headingColums set Sep 15, 2021
@dawidurbanski dawidurbanski changed the title Table rows and columns reordering when headingRows or headingColums set Table rows and columns reordering when headingRows or headingColums is set Sep 15, 2021
tablesToRefresh.add( element );
}
} else {
/* istanbul ignore else */
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively instead of nested if with ignored else we can completely drop below check:

if ( change.type === 'insert' || change.type === 'remove' ) {

@niegowski niegowski merged commit 12a24f8 into master Sep 17, 2021
@niegowski niegowski deleted the ck/10463-table-rows-columns-reordering branch September 17, 2021 09:57
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.

Reordering header rows or columns with non-headers breaks view
3 participants