@algolia/satellite 1.0.0-beta.167 → 1.0.0-beta.168

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.
@@ -123,6 +123,9 @@ var AutoComplete = exports.AutoComplete = function AutoComplete(_ref) {
123
123
  _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
124
124
  internalInputValue = _useState4[0],
125
125
  setInternalInputValue = _useState4[1];
126
+ (0, _react.useEffect)(function () {
127
+ return setInternalInputValue((inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : multiple) ? "" : value ? (0, _utils.optionToString)(value) : "");
128
+ }, [multiple, inputValueProp, value]);
126
129
  var inputValue = inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : internalInputValue;
127
130
  var _useState5 = (0, _react.useState)(null),
128
131
  _useState6 = (0, _slicedToArray2["default"])(_useState5, 2),
@@ -117,6 +117,9 @@ export var AutoComplete = function AutoComplete(_ref) {
117
117
  _useState4 = _slicedToArray(_useState3, 2),
118
118
  internalInputValue = _useState4[0],
119
119
  setInternalInputValue = _useState4[1];
120
+ useEffect(function () {
121
+ return setInternalInputValue((inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : multiple) ? "" : value ? optionToString(value) : "");
122
+ }, [multiple, inputValueProp, value]);
120
123
  var inputValue = inputValueProp !== null && inputValueProp !== void 0 ? inputValueProp : internalInputValue;
121
124
  var _useState5 = useState(null),
122
125
  _useState6 = _slicedToArray(_useState5, 2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@algolia/satellite",
3
- "version": "1.0.0-beta.167",
3
+ "version": "1.0.0-beta.168",
4
4
  "description": "Algolia design system React components",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",