If category dropdown is reset whenever any "select" or "multi-select" option is selected
filter: {
isEnabled: true,
filterCategories: [
{
key: "filterText",
title: "Filter text",
placeholderText: "Search",
type: FilterType.search,
},
{
key: "severity",
title: "Severity",
placeholderText: "Severity",
type: FilterType.multiselect,
selectOptions: [
{ key: "low", value: "Low" },
{ key: "moderate", value: "Moderate" },
{ key: "important", value: "Important" },
{ key: "critical", value: "Critical" },
],
},
],
},
I know this repository is under development and I don't expect this to be solved ASAP, but I wanted to write my findings somewhere as I find this repository extremely useful for Patternfly UI developers
Issue
If category dropdown is reset whenever any "select" or "multi-select" option is selected
How to reproduce it
configure the
useTableStatewith a configuration similar to:FilterType.multiselectand once you select an option then the main filter category selector will be reset toFilterTextinstead of keep the original category selectorScreencast.from.2024-02-20.09-26-26.webm
I know this repository is under development and I don't expect this to be solved ASAP, but I wanted to write my findings somewhere as I find this repository extremely useful for Patternfly UI developers