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(TreeData): addItem should keep current sorted column #1221

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

ghiscoding
Copy link
Owner

  • prior to this PR, calling addItem(), or addItems(), was always resorting using the Tree Data initial sort because the method being called is the same for the first build of the Tree Data and/or adding an item. So when we're adding an item, we should really reuse any existing sort that may exist when resynching the flat/hierarchical and resorting them (we always need to resort whenever it changes because by SlickGrid doesn't support Tree Data, we only support it by keeping copies of both flat & hierarchical and then resort them whenever something changes)

brave_KNDYMGY8FW

Copy link

stackblitz bot commented Jun 6, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 22.42%. Comparing base (14cd506) to head (47df152).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1221   +/-   ##
=======================================
  Coverage   22.42%   22.42%           
=======================================
  Files           8        8           
  Lines         901      901           
  Branches      307      330   +23     
=======================================
  Hits          202      202           
  Misses        699      699           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ghiscoding ghiscoding added the requires Universal change/release code change must first be implement in Slickgrid-Universal label Jun 6, 2024
@ghiscoding ghiscoding merged commit 87c39fb into master Jun 8, 2024
4 checks passed
@ghiscoding ghiscoding deleted the bugfix/tree-data-add-item-keep-sort-order branch June 8, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires Universal change/release code change must first be implement in Slickgrid-Universal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant