hoist-react icon indicating copy to clipboard operation
hoist-react copied to clipboard

Grid filter custom tab inputs are unable to read an array of values

Open saba-mo opened this issue 1 year ago • 0 comments

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. DateInput_1 DateInput_2

For numbers, setting 2 or more = or != filters from the FilterChooser will display NaN in the column header's custom tab's number input. NumberInput

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. String_1 String_2

saba-mo avatar Nov 09 '23 18:11 saba-mo