@algolia/autocomplete-js 1.12.0 → 1.12.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-js 1.12.
|
|
1
|
+
/*! @algolia/autocomplete-js 1.12.2 | 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) :
|
|
@@ -347,7 +347,7 @@
|
|
|
347
347
|
return undefined;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
|
-
var version = '1.12.
|
|
350
|
+
var version = '1.12.2';
|
|
351
351
|
|
|
352
352
|
var userAgents$1 = [{
|
|
353
353
|
segment: 'autocomplete-core',
|
|
@@ -909,6 +909,12 @@
|
|
|
909
909
|
}
|
|
910
910
|
});
|
|
911
911
|
}
|
|
912
|
+
|
|
913
|
+
// We return an empty plugin if `insightsClient` is still undefined at
|
|
914
|
+
// this stage, which can happen in server environments.
|
|
915
|
+
if (!insightsClient) {
|
|
916
|
+
return {};
|
|
917
|
+
}
|
|
912
918
|
var insights = createSearchInsightsApi(insightsClient);
|
|
913
919
|
var previousItems = createRef([]);
|
|
914
920
|
var debouncedOnStateChange = debounce(function (_ref3) {
|
|
@@ -2467,7 +2473,7 @@
|
|
|
2467
2473
|
} else if (event.key === 'Tab') {
|
|
2468
2474
|
store.dispatch('blur', null);
|
|
2469
2475
|
|
|
2470
|
-
// Hitting the `
|
|
2476
|
+
// Hitting the `Tab` key signals the end of a user interaction with the
|
|
2471
2477
|
// autocomplete. At this point, we should ignore any requests that are still
|
|
2472
2478
|
// pending and could reopen the panel once they resolve, because that would
|
|
2473
2479
|
// result in an unsolicited UI behavior.
|
|
@@ -3220,6 +3226,7 @@
|
|
|
3220
3226
|
// we lose track of the highlighted index. (Query-suggestions use-case)
|
|
3221
3227
|
action.props.openOnFocus === true ? action.props.defaultActiveItemId : null,
|
|
3222
3228
|
status: 'idle',
|
|
3229
|
+
completion: null,
|
|
3223
3230
|
query: ''
|
|
3224
3231
|
});
|
|
3225
3232
|
}
|