+
+
+
+
+
{
+ setIsOpen(false);
+ }}
+ containerAttributes={{ 'aria-label': label, id: panelId, role: 'group' }}
+ filterFunction={(item, searchTerm) => item.label.toLowerCase().includes(searchTerm.toLowerCase())}
+ getItemAttributes={getItemAttributes}
+ getNextFocusableItem={getNextFocusableItem.bind(null, getFocusableElements)}
+ hasSearch={hasSearch}
+ isItemSelected={isItemSelected}
+ isOpen={isOpen}
+ items={items}
+ maxVisibleItems={MAX_VISIBLE_ITEMS}
+ minWidth={PANEL_MIN_WIDTH}
+ onDropdownItemClick={(item) => {
+ changeValue(item.id);
+ }}
+ referenceElement={referenceElement}
+ renderFooter={renderFooter}
+ renderItem={renderItem}
+ />
+
+ );
+};
+
+export const FilterDropdownStateful = withStateValue