meta-magic / amexio.github.io

Amexio is a rich set of Angular 7 (170+) components powered by HTML5 & CSS3 for Responsive Design and with 80+ Material Design Themes, UI Components, Charts, Gauges, Data Point Widgets, Dashboards. Amexio is completely Open Sourced and Free. It's based on Apache 2 License. You can use it in your production grade work today at no cost or no obligation.
http://www.amexio.tech
Apache License 2.0
167 stars 72 forks source link

Using the search filter of a data grid clears all selected rows #151

Open kristyknapp opened 2 years ago

kristyknapp commented 2 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

Current behavior

We are using an amexio-datagrid that has column with a checkbox in it to select a row. When I select a row in the data grid and then use the search filter, any rows that were selected previously are now cleared. This same thing happens with an amexio-listbox.

Expected behavior

If I select a row in the data grid and then use the search filter, the row should still be selected.

Minimal reproduction of the problem with instructions

For bug reports please provide the STEPS TO REPRODUCE and if possible a MINIMAL DEMO of the problem via https://plnkr.co or similar (you can use Our Amexio Plunker as a starting point: http://plnkr.co/edit/M9AeGH?p=info) 1) Select a row in the datagrid

Screen Shot 2022-05-27 at 2 13 01 PM

2) Use one of the search filters (doesn't matter whether the search includes the selected row or not, but if it does the row will no longer be selected)

Screen Shot 2022-05-27 at 2 13 59 PM

3) Clear the search and any previously selected rows are no longer selected.

Screen Shot 2022-05-27 at 2 14 10 PM

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z

I was able to recreate this issue on the demo site with the amexio-listbox here: https://api.amexio.org/api/v5.20/index.html#/data/listbox-demo

Browser:
- [x ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: 12.0.0  
- Platform:  Mac 

Others: