-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Why does filterFilter take out null values when compared with '' in 1.2.x #5055
Comments
I guess this is because of this commit: 3bc4e7f? |
Can you specify exactly what aspect of SmartTable is failing with this filterFilter behaviour? Perhaps you can put together a demo on Plunker? |
The thing is that, before, we were not matching I think this is a reasonable expectation and perhaps the issue is really with SmartTable? |
Hey, look here's the plunker demonstrating the issue. |
Hi Peter, what happen in smartTable is that when filtering against the whole table, a predicate object is build like this: The issue is because column properties take precedence over the $. So I think this could be fixed in smart table by deleting the column properties of the predicate object instead of setting it to But following the logic you mentioned, by using a predicate object like the following: However it is not the case, so I think the filterFilter remains inconsistent. Laurent |
looks to me like this is a sort of a "conflict of interest" thing |
@lorenzofox3 - if you want to match anything then you now need to set the filter property to |
example:
will fail in 1.2.x which in some cases should not.
I'm using this SmartTable module in a project, and it fails displaying data in the table because of this new filter behavior, and it shouldn't in this context.
The text was updated successfully, but these errors were encountered: