Skip to content

fix(autocomplete): filter out empty collections in aria-controls#1302

Merged
Haroenv merged 1 commit intoalgolia:nextfrom
mxschmitt:fix-aria-control
Feb 4, 2025
Merged

fix(autocomplete): filter out empty collections in aria-controls#1302
Haroenv merged 1 commit intoalgolia:nextfrom
mxschmitt:fix-aria-control

Conversation

@mxschmitt
Copy link
Copy Markdown

@mxschmitt mxschmitt commented Feb 4, 2025

Summary

This PR fixes an issue that the aria-controls value was filled with a reference to empty collections. We can make an assumption to skip them, since recent/favorite collections don't get rendered for 0 size collections. See algolia/docsearch#2485 for more information.

Result

Its covered with tests in algolia/docsearch#2485.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Feb 4, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 07b7635:

Sandbox Source
@algolia/autocomplete-example-github-repositories-custom-plugin Configuration
@algolia/autocomplete-example-instantsearch Configuration
@algolia/autocomplete-example-playground Configuration
@algolia/autocomplete-example-preview-panel-in-modal Configuration
@algolia/autocomplete-example-starter-algolia Configuration
@algolia/autocomplete-example-starter Configuration
@algolia/autocomplete-example-reshape Configuration
@algolia/autocomplete-example-vue Configuration

@Haroenv Haroenv merged commit d4cca8c into algolia:next Feb 4, 2025
@Haroenv
Copy link
Copy Markdown
Contributor

Haroenv commented Feb 4, 2025

Thanks @mxschmitt, will release this soon

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.

2 participants