algolia-experiences 1.8.6 → 1.8.7

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-experiences 1.8.6 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
1
+ /*! algolia-experiences 1.8.7 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */
2
2
  (function (factory) {
3
3
  typeof define === 'function' && define.amd ? define(factory) :
4
4
  factory();
@@ -9981,7 +9981,7 @@
9981
9981
  };
9982
9982
  }
9983
9983
 
9984
- var version = '4.98.0';
9984
+ var version = '4.99.0';
9985
9985
 
9986
9986
  function getServerResults(entry) {
9987
9987
  var _entry_compositionFeedsResults;
@@ -14304,8 +14304,14 @@
14304
14304
  * because Preact does not perform it automatically.
14305
14305
  * @see https://github.com/preactjs/preact/issues/3242
14306
14306
  */ function componentDidUpdate() {
14307
- var _this_listRef_current_querySelector, _this_lastRefinedValue, _this_listRef_current;
14308
- (_this_listRef_current = this.listRef.current) === null || _this_listRef_current === void 0 ? void 0 : (_this_listRef_current_querySelector = _this_listRef_current.querySelector('input[value="'.concat((_this_lastRefinedValue = this.lastRefinedValue) === null || _this_lastRefinedValue === void 0 ? void 0 : _this_lastRefinedValue.replace('"', '\\"'), '"]'))) === null || _this_listRef_current_querySelector === void 0 ? void 0 : _this_listRef_current_querySelector.focus();
14307
+ var _this_listRef_current;
14308
+ var inputs = ((_this_listRef_current = this.listRef.current) === null || _this_listRef_current === void 0 ? void 0 : _this_listRef_current.getElementsByTagName('input')) || [];
14309
+ for(var i = 0; i < inputs.length; i++){
14310
+ if (inputs[i].value === this.lastRefinedValue) {
14311
+ inputs[i].focus();
14312
+ break;
14313
+ }
14314
+ }
14309
14315
  this.lastRefinedValue = undefined;
14310
14316
  }
14311
14317
  },