angular-ui/ui-grid

Select all checkbox not clearing on filter change

Open

#4,739 建立於 2015年11月20日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)JavaScript (2,496 fork)batch import
Low-Pri Buggrid-selectionhelp wantedtype: bug

倉庫指標

Star
 (5,395 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

As a user, for example, in the following plnkr I want to select all the people with ages 22 and 30. I would set filter in the age column to 30 and would mark all the displayed rows as selected. Next I would change the filter in the age column to 22 and would want to select all the displayed rows to add up the selection to the previous selection that I made.

http://plnkr.co/edit/Hh307ESEMB6n3vwd9GHU?p=preview

Observed behavior: The SelectAll checkbox remains selected on filter change. On clicking the checkbox, the checkbox is cleared and also clears the previously made selection.

Expected behavior: The SelectAll checkbox should get cleared if the rows currently displayed are not in selected state. Clicking the SelectAll checkbox again should select the currently displayed rows and should add up to the previous selection made.

貢獻者指南