You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add excel like filtering with primereact multiselect and running into some problems with the dropdown closing. When I apply a filter I want that to updates all the other filters options instead of keeping the total options always. Here is a codesandbox that shows the problem. In the sandbox I have a button that controls if the filters pull from rows or filteredRows. You can see that when the button says rows it works but that wont filter the dropdowns since it's using the whole dataset. When the button says filteredRows that filters the dropdowns but then also closes the dropdown on change.
Also you would notice this kind of makes a multiselect useless since the current filter your on will always be filtered down to the 1 option you picked. So the current filter being changed should not change options but all the others filter options should change.
To sum it up:
I want the dropdown to stay open even when any dropdown options change
The current filter being changed should not change options but all the others filter options should change.
This discussion was converted from issue #2458 on August 17, 2021 17:30.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to add excel like filtering with primereact multiselect and running into some problems with the dropdown closing. When I apply a filter I want that to updates all the other filters options instead of keeping the total options always. Here is a codesandbox that shows the problem. In the sandbox I have a button that controls if the filters pull from
rows
orfilteredRows
. You can see that when the button saysrows
it works but that wont filter the dropdowns since it's using the whole dataset. When the button saysfilteredRows
that filters the dropdowns but then also closes the dropdown on change.Also you would notice this kind of makes a multiselect useless since the current filter your on will always be filtered down to the 1 option you picked. So the current filter being changed should not change options but all the others filter options should change.
To sum it up:
Beta Was this translation helpful? Give feedback.
All reactions