Skip to content

fix(1636): list-not-empty#1703

Closed
milan-lakhani wants to merge 1 commit intoshentao:nextfrom
milan-lakhani:list-not-empty-1636
Closed

fix(1636): list-not-empty#1703
milan-lakhani wants to merge 1 commit intoshentao:nextfrom
milan-lakhani:list-not-empty-1636

Conversation

@milan-lakhani
Copy link
Copy Markdown

Now by default list is empty will be show on selecting all the options from the list

This is a new pull request (Closed PR #1699 ) after rebasing to next from master.

Closes Issue #1636

@milan-lakhani milan-lakhani changed the title fix(1636)-list-not-empty fix(1636): list-not-empty May 19, 2023
@Clink50
Copy link
Copy Markdown

Clink50 commented Dec 13, 2024

Is there a workaround for this issue or can this be merged in so that this fix now works when there are no options found by the search?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #1636 where the "List is empty" message doesn't display when all options are selected in a multiselect component with the hideSelected prop enabled. The fix changes the visibility condition from checking the original options array to checking filteredOptions, which accounts for filtering logic including hiding selected items.

Changes:

  • Updated the condition for displaying the "List is empty" message to use filteredOptions.length instead of options.length

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mattelen
Copy link
Copy Markdown
Collaborator

Closing PR as this is targeting an old branch, not master. I've put the changes on a new PR: #1926

@mattelen mattelen closed this Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants