Skip to content

Commit

Permalink
Merge branch 'master' into FE-6908
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-albu-sage authored Nov 28, 2024
2 parents aaed31e + a33247d commit df29d1e
Show file tree
Hide file tree
Showing 8 changed files with 326 additions and 62 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
### [144.9.6](https://github.com/Sage/carbon/compare/v144.9.5...v144.9.6) (2024-11-28)


### Bug Fixes

* **select-list:** selected option not scrolled into view ([d842293](https://github.com/Sage/carbon/commit/d8422931196b07d5550899421a2e33842378f340))

### [144.9.5](https://github.com/Sage/carbon/compare/v144.9.4...v144.9.5) (2024-11-27)


### Bug Fixes

* **multi-select:** ensure that when the arrow icon is clicked with openOnFocus select list renders ([cf78fed](https://github.com/Sage/carbon/commit/cf78fed27658b6b9eca97c874d2737b702041c82)), closes [#7065](https://github.com/Sage/carbon/issues/7065)

### [144.9.4](https://github.com/Sage/carbon/compare/v144.9.3...v144.9.4) (2024-11-26)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "carbon-react",
"version": "144.9.4",
"version": "144.9.6",
"description": "A library of reusable React components for easily building user interfaces.",
"files": [
"lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ const SelectList = React.forwardRef(
rangeExtractor,
});

useEffect(() => {
if (isOpen && currentOptionsListIndex > -1) {
virtualizer.scrollToIndex(currentOptionsListIndex, SCROLL_OPTIONS);
}
}, [currentOptionsListIndex, isOpen, virtualizer]);

const items = virtualizer.getVirtualItems();

const childrenList = useMemo(
Expand Down
Loading

0 comments on commit df29d1e

Please sign in to comment.