angular-ui/ui-grid

Rows remain expanded when doing clearFilter and collapse at once

Open

#6941 aperta il 26 feb 2019

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
grid-expandablehelp wanted

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When in an expandable grid with all rows expanded, you filter for something and then programmatically clear all filters and collapse all rows (gridApi.expandable.collapseAllRows() and gridApi.grid.clearAllFilters()) at once, you get an unexpected behavior: Only the row(s) previously filtered gets collapsed while all the others remain expanded.

See Plunker: http://next.plnkr.co/edit/sB71ZwrmqVt9BUU5?preview

My issue might be related to: https://github.com/angular-ui/ui-grid/issues/4044 but I'm not sure if it's 100% the same.

Guida contributor