Skip to content

Fix column sort issue when oldSortDisplay is empty#139

Open
brianfdrg wants to merge 1 commit into
railapex:masterfrom
brianfdrg:fix-empty-oldsortdisplay
Open

Fix column sort issue when oldSortDisplay is empty#139
brianfdrg wants to merge 1 commit into
railapex:masterfrom
brianfdrg:fix-empty-oldsortdisplay

Conversation

@brianfdrg
Copy link
Copy Markdown

Sorting would break after adding a column, sorting on it, and then removing it. currentSort still contained the removed column's data type, causing sortFields to include entries no longer in the DOM. Then oldSortDisplay would be empty, and error at line 954. After that clicking on column headers would do nothing. Added a check to skip sort fields that no longer map to a column header.

Sorting would break after adding a column, sorting on it, and then removing it. currentSort still contained the removed column's data type, causing sortFields to include entries no longer in the DOM. Then oldSortDisplay would be empty, and error at line 954. After that clicking on column headers would do nothing. Added a check to skip sort fields that no longer map to a column header.
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