@algolia/autocomplete-core 1.18.0 → 1.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,7 +150,9 @@ export function getPropGetters(_ref) {
|
|
|
150
150
|
return _objectSpread({
|
|
151
151
|
'aria-autocomplete': 'both',
|
|
152
152
|
'aria-activedescendant': store.getState().isOpen && store.getState().activeItemId !== null ? getAutocompleteElementId(props.id, "item-".concat(store.getState().activeItemId), activeItem === null || activeItem === void 0 ? void 0 : activeItem.source) : undefined,
|
|
153
|
-
'aria-controls': store.getState().isOpen ? store.getState().collections.
|
|
153
|
+
'aria-controls': store.getState().isOpen ? store.getState().collections.filter(function (collection) {
|
|
154
|
+
return collection.items.length > 0;
|
|
155
|
+
}).map(function (_ref4) {
|
|
154
156
|
var source = _ref4.source;
|
|
155
157
|
return getAutocompleteElementId(props.id, 'list', source);
|
|
156
158
|
}).join(' ') : undefined,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-core 1.18.
|
|
1
|
+
/*! @algolia/autocomplete-core 1.18.1 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
return undefined;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
|
-
var version = '1.18.
|
|
294
|
+
var version = '1.18.1';
|
|
295
295
|
|
|
296
296
|
var userAgents = [{
|
|
297
297
|
segment: 'autocomplete-core',
|
|
@@ -2126,7 +2126,9 @@
|
|
|
2126
2126
|
return _objectSpread2({
|
|
2127
2127
|
'aria-autocomplete': 'both',
|
|
2128
2128
|
'aria-activedescendant': store.getState().isOpen && store.getState().activeItemId !== null ? getAutocompleteElementId(props.id, "item-".concat(store.getState().activeItemId), activeItem === null || activeItem === void 0 ? void 0 : activeItem.source) : undefined,
|
|
2129
|
-
'aria-controls': store.getState().isOpen ? store.getState().collections.
|
|
2129
|
+
'aria-controls': store.getState().isOpen ? store.getState().collections.filter(function (collection) {
|
|
2130
|
+
return collection.items.length > 0;
|
|
2131
|
+
}).map(function (_ref4) {
|
|
2130
2132
|
var source = _ref4.source;
|
|
2131
2133
|
return getAutocompleteElementId(props.id, 'list', source);
|
|
2132
2134
|
}).join(' ') : undefined,
|