angular-ui/ui-grid

Multi custom filter save state

Open

#6.585 aberto em 2 de mar. de 2018

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (2.496 forks)batch import
good first issue

Métricas do repositório

Stars
 (5.395 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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?

Guia do colaborador