@councilbox/councilbox-ui 2.0.36 → 2.0.37

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.
@@ -16,7 +16,7 @@ a.noStyles:hover{
16
16
  `}</style>
17
17
 
18
18
 
19
- # Librería de componentes ui-councilbox NEW v2.0.35 &#127881;
19
+ # Librería de componentes ui-councilbox NEW v2.0.37 &#127881;
20
20
 
21
21
  <h2>Componentes:</h2>
22
22
  <div><a class='noStyles' href='/story/components-accordion--default'>Accordion</a></div>
@@ -320,6 +320,17 @@ var InputAutocomplete = function InputAutocomplete(_ref) {
320
320
  });
321
321
  }, [inputRef.current]);
322
322
 
323
+ _react.default.useEffect(function () {
324
+ if (propInputValue === undefined) {
325
+ if (value) {
326
+ var newLabel = getOptionLabel(value);
327
+ setInternalInputValue(newLabel || '');
328
+ } else {
329
+ setInternalInputValue('');
330
+ }
331
+ }
332
+ }, [value]);
333
+
323
334
  return /*#__PURE__*/_react.default.createElement("div", {
324
335
  className: prefixClass("cbx-inputAutocomplete-container ".concat(isOpen ? 'cbx-inputAutocomplete-container-open' : '', " ").concat(uiState.showSearchInput ? 'cbx-inputAutocomplete-container-open' : '')),
325
336
  style: _objectSpread(_objectSpread(_objectSpread({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@councilbox/councilbox-ui",
3
- "version": "2.0.36",
3
+ "version": "2.0.37",
4
4
  "main": "dist/build-index.js",
5
5
  "files": [
6
6
  "dist",