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

fix: combobox primitive empty state when autocomplete is none #1816

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

HichamELBSI
Copy link
Collaborator

What does it do?

This PR fixes the existing issue that always renders the No result found (empty state) of the combobox when autocomplete is set to off.

Why is it needed?

Avoid rendering the No result found at the end of the option list (when autocomplete = none) which is the case in all Strapi Cloud combobox.

How to test it?

Added new unit tests to handle this use case

Related issue(s)/PR(s)

#1803

@HichamELBSI HichamELBSI added pr: fix This PR is fixing a bug issue: bug Issue reporting a bug labels Nov 7, 2024
@HichamELBSI HichamELBSI self-assigned this Nov 7, 2024
Copy link

changeset-bot bot commented Nov 7, 2024

🦋 Changeset detected

Latest commit: f2ad83e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/ui-primitives Major
@strapi/design-system Major
@strapi/icons Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
design-system ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 11:44am

Copy link
Contributor

@simotae14 simotae14 left a comment

Choose a reason for hiding this comment

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

looks good to me, well done 👏🏽

Copy link
Contributor

@mazzucchelli mazzucchelli left a comment

Choose a reason for hiding this comment

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

🚀

@HichamELBSI HichamELBSI merged commit 741c3f2 into main Nov 7, 2024
12 checks passed
@HichamELBSI HichamELBSI deleted the fix/combobox-primitive-empty-state branch November 7, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug pr: fix This PR is fixing a bug source: primitives relates to primitives package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants