Skip to content

Commit

Permalink
clear filter value after an action is chosen from MultiSelection's op…
Browse files Browse the repository at this point in the history
…tion list.
  • Loading branch information
JohnC-80 committed Nov 19, 2024
1 parent 46ce739 commit 42b44fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* Wrap `<Selection>` in full-width div. Refs STCOM-1332.
* Assign `<Modal>`'s exit key handler to Modal's element rather than `document`. refs STCOM-1382.
* Wrap `<Card>`'s render output in `<StripesOverlayContext>` to facilitate ease with overlay components. Refs STCOM-1384.
* Clear filter value after an action chosen from `MultiSelection` menu. Refs STCOM-1385.

## [12.2.0](https://github.com/folio-org/stripes-components/tree/v12.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.1.0...v12.2.0)
Expand Down
1 change: 1 addition & 0 deletions lib/MultiSelection/MultiSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ const MultiSelection = ({
selectedItems,
reset
});
setFilterValue('');
return {
isOpen: false, // keep the menu open after selection.
highlightedIndex, // don't move highlight cursor back to top of list on selection.
Expand Down

0 comments on commit 42b44fe

Please sign in to comment.