angular-ui/ui-grid

Rows remain expanded when doing clearFilter and collapse at once

已關閉

#6,941 建立於 2019年2月26日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (2,496 個分叉)batch import
grid-expandablehelp wanted

倉庫指標

星標
 (5,395 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南