Skip to content

feat(MultiSelect): add scrollOverflow prop#1169

Merged
yurii-vasyliev merged 1 commit intocanonical:mainfrom
yurii-vasyliev:fix/multiselect-height
Jan 15, 2025
Merged

feat(MultiSelect): add scrollOverflow prop#1169
yurii-vasyliev merged 1 commit intocanonical:mainfrom
yurii-vasyliev:fix/multiselect-height

Conversation

@yurii-vasyliev
Copy link
Contributor

Done

When used in certain cases with long lists, it would be useful to set the scrollOverflow.
I'd think we need this prop to be true all the time, but for the sake of compatibility with other projects, let's keep it false by default as it is right now.

QA

Storybook

To see rendered examples of all react-components, run:

yarn start

QA in your project

from react-components run:

yarn build
npm pack

Install the resulting tarball in your project with:

yarn add <path-to-tarball>

QA steps

  • Steps for QA.

Percy steps

  • List any expected visual change in Percy, or write something like "No visual changes expected" if none is expected.

Fixes

Fixes: # .

@webteam-app
Copy link

@jmuzina
Copy link
Member

jmuzina commented Jan 15, 2025

When I set scrollOverflow to true, scroll down, and select an item, the list is scrolled back to the top. Is that intended behavior?

Screen.Recording.2025-01-14.at.19.00.14.mov

@yurii-vasyliev
Copy link
Contributor Author

@jmuzina , I don't think so, it seems like a bug. However, I think it's outside of the scope of this PR.

@yurii-vasyliev yurii-vasyliev merged commit c9db9a7 into canonical:main Jan 15, 2025
8 checks passed
@yurii-vasyliev yurii-vasyliev deleted the fix/multiselect-height branch January 15, 2025 15:50
@github-actions
Copy link

🎉 This PR is included in version 1.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants