angular-ui/ui-grid

Multi custom filter save state

Open

#6,585 创建于 2018年3月2日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (2,496 fork)batch import
good first issue

仓库指标

Star
 (5,395 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

When using UI-grid custom filters (either the tutorial one or the ui-grid-multiselect-filter on npm ), the filters are stored in a listTerm object and in the default term object (Separated by commas).

The default grid restore tries to restore the term object which breaks the filter. If I log the state in the console I can see a filters array for each column containing 2 objects a "listTerm" array containing the selected terms and a term object containing the same values separated by commas as term :"filvalue1, filvalue2," I think grid is restoring this comma separated object and treating it as a single filter text. any ideas how to get it recognize the comma as a separator or to do this in a different way?

贡献者指南