Skip to content

feat: multiselect improvements#1367

Merged
Ninfa-Jeon merged 2 commits intocanonical:mainfrom
Ninfa-Jeon:multi-select-improvements
Apr 29, 2026
Merged

feat: multiselect improvements#1367
Ninfa-Jeon merged 2 commits intocanonical:mainfrom
Ninfa-Jeon:multi-select-improvements

Conversation

@Ninfa-Jeon
Copy link
Copy Markdown
Contributor

@Ninfa-Jeon Ninfa-Jeon commented Apr 29, 2026

Done

  • Exposed search text as controlled/uncontrolled:
    • onSearchChange(value: string)
  • Expose lifecycle callbacks:
    • onOpen
    • onClose
  • Add native empty state support:
    • emptyState node or emptyMessage string
  • New tests and stories for this functionality

QA

Pinging @canonical/react-library-maintainers for a review.

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

  • Review that the newly exposed values and callbacks are actually available (check storybook)

Copy link
Copy Markdown
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, though some ideas and suggestions to simplify.

Comment thread src/components/MultiSelect/MultiSelect.tsx Outdated
Comment thread src/components/MultiSelect/MultiSelect.tsx Outdated
@Ninfa-Jeon Ninfa-Jeon force-pushed the multi-select-improvements branch from 80ddfc9 to a29a5d5 Compare April 29, 2026 16:03
@Ninfa-Jeon Ninfa-Jeon requested a review from edlerd April 29, 2026 16:04
Copy link
Copy Markdown
Contributor

@edlerd edlerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, one more idea to simplify the interface.

Comment thread src/components/MultiSelect/MultiSelect.tsx
@Ninfa-Jeon Ninfa-Jeon force-pushed the multi-select-improvements branch from a29a5d5 to 9e9eabe Compare April 29, 2026 16:20
@Ninfa-Jeon Ninfa-Jeon merged commit 0b7a355 into canonical:main Apr 29, 2026
9 checks passed
@Ninfa-Jeon Ninfa-Jeon deleted the multi-select-improvements branch April 29, 2026 16:29
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 4.5.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.

2 participants