utopia-ui 3.0.0-alpha.60 → 3.0.0-alpha.61

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
@@ -2290,7 +2290,12 @@ var SearchControl = function (_a) {
2290
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
- 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(); } }),
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 () {
2294
+ setHideSuggestions(false);
2295
+ console.log(windowDimensions.width);
2296
+ if (windowDimensions.width < 500)
2297
+ map.closePopup();
2298
+ }, onBlur: function () { return hide(); } }),
2294
2299
  React.createElement(LocateControl, null)),
2295
2300
  value.length > 0 && React.createElement("button", { className: "tw-btn tw-btn-sm tw-btn-circle tw-absolute tw-right-16 tw-top-2", onClick: function () { return setValue(""); } }, "\u2715"),
2296
2301
  hideSuggestions || Array.from(geoResults).length == 0 && itemsResults.length == 0 && tagsResults.length == 0 && !isGeoCoordinate(value) || value.length == 0 ? "" :