We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f05a701 commit 07b7635Copy full SHA for 07b7635
1 file changed
packages/autocomplete-core/src/getPropGetters.ts
@@ -202,7 +202,8 @@ export function getPropGetters<
202
'aria-controls': store.getState().isOpen
203
? store
204
.getState()
205
- .collections.map(({ source }) =>
+ .collections.filter((collection) => collection.items.length > 0)
206
+ .map(({ source }) =>
207
getAutocompleteElementId(props.id, 'list', source)
208
)
209
.join(' ')
0 commit comments