ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

filterFunc is not working properly with 0 value

Open aleshchenko opened this issue 13 years ago • 1 comments

self.evalFilter -> filterFunc is not working properly when value is numeric 0. Problem is here (line 2154, build 2.0.6):

if (!value || !result) {
    return false;
}

!0 returns true. Should be fixed like this:

if (value === undefined || value === null || !result) {
    return false;
}

aleshchenko avatar Jul 01 '13 09:07 aleshchenko

Thanks. Should be fixed in latest 2.0.7.

jonricaurte avatar Jul 01 '13 14:07 jonricaurte