hoist-react
hoist-react copied to clipboard
Grid filter custom tab inputs are unable to read an array of values
The grid filter custom tab's inputs are breaking when they receive an array of values and enableValues is false. The custom tab currently reads a compound filter but should be able to read and display array filters and emit array filters where possible, such as an OR filter with multiple equals clauses or an AND filter with multiple not equals clauses. This would make it behave more closely to the other filtering methods: FilterChooser, context menu, and the grid filter's values tab. Steps to reproduce the problematic behavior plus screenshots are below.
For dates, if an = or != filter is set via the FilterChooser or the context menu, opening the column header's custom tab shows an empty date input but with an X to clear the blank selection. Clicking on the calendar shows an error.
For numbers, setting 2 or more = or != filters from the FilterChooser will display NaN in the column header's custom tab's number input.
For strings, setting 2 or more = or != filters from the FilterChooser will display a comma-separated list of values in the column header's custom tab.