akveo / akveo/ng2-smart-table

"Select All" checkbox bug

未关闭
#834 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

When using multi select mode, I click the select all check box in the header.
Every row on the page gets selected. (which is correct)
Then I do something that reloads the table:
LocalDataSource.load(newData)

The selected row check boxes reset to unchecked (which is correct), but the select all check box in the header is still checked.

This can be cleared by calling the resetAllSelector() function found at ng2-smart-table.components.ts
This function is called when manually changing a page, sorting, or filtering but not if you change page, sort, or filter by calling the functions on LocalDataSource.

Please call resetAllSelector() whenever LocalDataSource.load() is called.

I've tried some workarounds, but calling LocalDataSource.reset() and LocalDataSource.refresh() also do not fix this. Maybe those should call resetAllSelector() as well?

Please let me know if I can help further.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。