DataGrid loses sort on data change
Scale Version 3.0.0-beta.151
Framework and version Are you using web components in a specific framework (react, angular, vue)? If so what version of the framework? Are you using one of the auto-generated scale wrapper packages? React and @telekom/scale-components-react version 3.0.0-beta.151
Current Behavior Upon a data update the data table loses any sort order, this can be seen in the docs with the show more example.
Expected Behavior If I have sorted the table by a specific column the data should stay sorted in this order even on a data update
Code Reproduction Here you can sort the data grid on the letter and then add a new letter which triggers the reset:
https://codesandbox.io/p/sandbox/scale-components-react18-with-wrapper-forked-mkd8z8
The problem can also be replicated in the https://telekom.github.io/scale/?path=/docs/components-data-grid--show-more demo by sorting by name and then clicking the show more option.
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome, Edge and FF Developer tested
- Version: 124.0.6367.119, 124.0.2478.80, 126.0b9