angular-ui/ui-grid

Multi custom filter save state

Open

#6585 aperta il 2 mar 2018

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)JavaScript (2496 fork)batch import
good first issue

Metriche repository

Star
 (5395 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor