Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select virtualiser tweaks #7001

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Select virtualiser tweaks #7001

merged 2 commits into from
Oct 14, 2024

Conversation

edleeks87
Copy link
Contributor

fix #6978
fix #6939

Proposed behaviour

Upgrades @tanstack/react-virtual to 3.10.8

Updates Option interface to allow value and text to be optional to allow users to compose children for complex layouts. This ensures that SelectList height is set relatively when a custom option is passed as child so that there is no overflow (scrollbars). When no value is passed the option is treated as non-interactive (can't be clicked or selected) and is styled as such.

Current behaviour

@tanstack/react-virtual is 3.0.0-beta.68
Option requires value and text to be set

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Unit tests added or updated if required
  • Storybook added or updated if required
  • Typescript d.ts file added or updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

@edleeks87 edleeks87 force-pushed the select-virtualiser-tweaks branch from 69a086d to 790f388 Compare October 8, 2024 15:30
Parsium
Parsium previously approved these changes Oct 8, 2024
nineteen88
nineteen88 previously approved these changes Oct 9, 2024
@edleeks87 edleeks87 dismissed stale reviews from nineteen88 and Parsium via 8eaded4 October 9, 2024 11:41
@edleeks87 edleeks87 force-pushed the select-virtualiser-tweaks branch from 790f388 to 8eaded4 Compare October 9, 2024 11:41
@edleeks87 edleeks87 marked this pull request as ready for review October 9, 2024 11:42
@edleeks87 edleeks87 requested review from a team as code owners October 9, 2024 11:42
Parsium
Parsium previously approved these changes Oct 9, 2024
Upgrades `@tanstack/react-virtual` to 3.10.8

fix #6978
Updates Option interface to allow `value` and `text` to be optional to allow users
to compose `children` for complex layouts. This ensures that `SelectList` height
is set relatively when a custom option is passed as child so that there is no
overflow

fix #6939
@edleeks87 edleeks87 merged commit 5cd9f1d into master Oct 14, 2024
24 checks passed
@edleeks87 edleeks87 deleted the select-virtualiser-tweaks branch October 14, 2024 08:50
@carbonci
Copy link
Collaborator

🎉 This PR is included in version 143.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

edleeks87 added a commit that referenced this pull request Oct 14, 2024
…` is an empty string

Adds invariant to ensure that the component does not render when `children` are passed but `submenu`
is an empty string

fix #7001
edleeks87 added a commit that referenced this pull request Oct 14, 2024
…` is an empty string

Adds invariant to ensure that the component does not render when `children` are passed but `submenu`
is an empty string

fix #7001
@edleeks87 edleeks87 mentioned this pull request Oct 14, 2024
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants