ublo-lib 1.47.95 → 1.47.96
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.
|
@@ -140,10 +140,7 @@ const SearchBar = ({ lang, resultFormatter, backdrop, OverrideIcons = {}, messag
|
|
|
140
140
|
"search-bar--opened": results.length > 0,
|
|
141
141
|
"search-bar--loading": search?.loading,
|
|
142
142
|
});
|
|
143
|
-
return (_jsxs("div", { className: classes, onFocus: () => {
|
|
144
|
-
sendEvent("basic", "load");
|
|
145
|
-
focusInput();
|
|
146
|
-
}, children: [backdrop && _jsx("div", { className: "search-bar__backdrop", onClick: close }), _jsxs("div", { className: "search-bar__input-container", children: [_jsx("input", { ref: input, type: "text", value: text, onChange: updateSearch, onKeyDown: handleKeyDown, className: "search-bar__input", placeholder: message(ubloLang, "what-are-you-looking-for", messages), onBlur: handleBlur }), _jsx(Icon, { className: "search-bar__icon" }), _jsxs("div", { ref: resultsContainer, className: "search-bar__results", children: [results?.map((result, i) => {
|
|
143
|
+
return (_jsxs("div", { className: classes, onFocus: () => sendEvent("basic", "load"), children: [backdrop && _jsx("div", { className: "search-bar__backdrop", onClick: close }), _jsxs("div", { className: "search-bar__input-container", children: [_jsx("input", { ref: input, type: "text", value: text, onChange: updateSearch, onKeyDown: handleKeyDown, className: "search-bar__input", placeholder: message(ubloLang, "what-are-you-looking-for", messages), onBlur: handleBlur }), _jsx(Icon, { className: "search-bar__icon" }), _jsxs("div", { ref: resultsContainer, className: "search-bar__results", children: [results?.map((result, i) => {
|
|
147
144
|
const { name, title, page, path } = result;
|
|
148
145
|
const externalLink = page === undefined;
|
|
149
146
|
const Tag = externalLink ? "a" : Link;
|