utopia-ui 3.0.0-alpha.54 → 3.0.0-alpha.56

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.
package/dist/index.js CHANGED
@@ -2287,7 +2287,7 @@ var SearchControl = function (_a) {
2287
2287
  });
2288
2288
  }); };
2289
2289
  var searchInput = useRef(null);
2290
- return (React.createElement(React.Fragment, null, !(windowDimensions.height < 500 && popupOpen) &&
2290
+ return (React.createElement(React.Fragment, null, !(windowDimensions.height < 500 && popupOpen && hideSuggestions) &&
2291
2291
  React.createElement("div", { className: 'tw-w-[calc(100vw-2rem)] tw-max-w-[22rem] ' },
2292
2292
  React.createElement("div", { className: 'flex tw-flex-row' },
2293
2293
  React.createElement("input", { type: "text", placeholder: "search ...", autoComplete: "off", value: value, className: "tw-input tw-input-bordered tw-w-full tw-shadow-xl tw-rounded-lg tw-mr-2", ref: searchInput, onChange: function (e) { return setValue(e.target.value); }, onFocus: function () { return setHideSuggestions(false); }, onBlur: function () { return hide(); } }),
@@ -2335,6 +2335,7 @@ var SearchControl = function (_a) {
2335
2335
  map.fitBounds(new LatLngBounds(new LatLng(geo.properties.extent[1], geo.properties.extent[0]), new LatLng(geo.properties.extent[3], geo.properties.extent[2])));
2336
2336
  else
2337
2337
  map.setView(new LatLng(geo.geometry.coordinates[1], geo.geometry.coordinates[0]), 15, { duration: 1 });
2338
+ hide();
2338
2339
  } },
2339
2340
  React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", strokeWidth: "1.5", stroke: "currentColor", className: "tw-text-current tw-mr-2 tw-mt-0 tw-w-4" },
2340
2341
  React.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z" })),