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/item): fix some items not add into allItems map #1368

Merged
merged 3 commits into from
Nov 27, 2024

Conversation

RayGuo-ergou
Copy link
Contributor

@RayGuo-ergou RayGuo-ergou commented Oct 13, 2024

Description

closes #1234

This pr fixes when rootContext.isVirtual.value || rootContext.ignoreFilter.value || !rootContext.filterState.search is false, the item will never add into allItems map.

To reproduce this bug, create a async combobox (e.g. the one in the story), before opening the dropdown, give any value to search query.


Added an event listener to apply filter when allItems size changes.

* It uses watch rather than watchDebounced even the items are set one by one because it's handled by vue watch

@RayGuo-ergou
Copy link
Contributor Author

Hi @zernonia, just saw the new releases 😀 which reminds me of this PR, could you review this when you have time? Thanks.

Copy link
Member

@zernonia zernonia left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @RayGuo-ergou ! LGTM! 💚

@zernonia zernonia merged commit 96eae70 into unovue:v2 Nov 27, 2024
3 checks passed
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.

3 participants