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 Default Sort Behavior Of Table With Custom Templates #1308

Merged
merged 1 commit into from
Mar 4, 2018

Conversation

swseverance
Copy link
Contributor

@swseverance swseverance commented Feb 22, 2018

What kind of change does this PR introduce? (check one with "x")

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
There are scenarios for which a table's _internalColumns object appears to be undefined when the initial sorting of the table occurs as a result of component lifecycle events. This can lead to the table not being sorted even when sorts are passed to the table via an input.

What is the new behavior?
Table rows are now sorted after changes to columnTemplates

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...

Other information:

* Sort table rows upon changes to column templates
* Reduce code duplication by through `sortInternalRows` method
@swseverance swseverance changed the title Add Unit Test For Default Sort Behavior Of Table With Custom Templates Fix Default Sort Behavior Of Table With Custom Templates Feb 22, 2018
@marjan-georgiev marjan-georgiev merged commit a041ca2 into swimlane:master Mar 4, 2018
@marjan-georgiev
Copy link
Member

Looks good, thanks! 👍

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