-
Notifications
You must be signed in to change notification settings - Fork 558
Description
Hi,
We have the option to add an empty rule to the builder. But I believe the builder should ignore the empty rule.
To illustrate: In our application, once a user selects a parameter te filter on, an empty rule is automatically added:

This so the user can easily select new parameters to filter on. The add and group button are hidden in a 'simple filter mode'.
I've setup custom validation so all rules should come across this callback method. Now the empty rule doesn't, of course.
Could you add an option to allow empty rules or ignore empty rules? I know we already have allow empty values.
Workaround now would be to use allow invalid rules, then check every rule if it is not valid and empty.
EDIT: Workaround works, but it will still show an indicator that "no filter is selected". Setting property valid to true doesn't help either.