Skip to content

Ignore empty rules (not empty values) #426

@Ruud-cb

Description

@Ruud-cb

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:
image
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions