Primeng: Turbo Table cannot filter empty values with "in" Filter

Created on 1 Nov 2018  路  3Comments  路  Source: primefaces/primeng

NOTE: PR exists.

Current behavior
It's not possible to filter the table by null or undefined values.

Expected behavior
It should be able to filter empty rows.

Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/github-2ovumv

enhancement

All 3 comments

Any chance that this will be looked at for near future release? I have a workaround in place for my app but it'd be nice to go back to the native "in" filter mode.

FilterUtils['in-fixed'] = (value, filters) => {
  if (filters === undefined || filters === null || filters.length === 0) {
      return true;
  }

  for (const filter of filters) {
      if (ObjectUtils.equals(value, filter)) {
          return true;
      }
  }

  return false;
};

Planned for 10.0.1.

We've discussed this internally as 10.0.1 should be released today, we postpone it to 10.0.2 as it requires more thinking. It has high priority so will be solved in the next one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchristou picture pchristou  路  3Comments

garethlewis picture garethlewis  路  3Comments

Helayxa picture Helayxa  路  3Comments

papiroca-tm picture papiroca-tm  路  3Comments

cyberrranger picture cyberrranger  路  3Comments