ublo-lib 1.35.11 → 1.35.13
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.
|
@@ -139,11 +139,15 @@ const SearchBar = ({ lang, resultFormatter, backdrop, OverrideIcons = {}, messag
|
|
|
139
139
|
"Terms - Destination": `${text} - ${path}`,
|
|
140
140
|
});
|
|
141
141
|
};
|
|
142
|
+
const onClick = () => {
|
|
143
|
+
close();
|
|
144
|
+
sendPlausibleGoal();
|
|
145
|
+
};
|
|
142
146
|
const props = externalLink ? anchorProps : linkProps;
|
|
143
147
|
const classes = classNames("search-bar__result", {
|
|
144
148
|
"search-bar__result--active": i === state.active,
|
|
145
149
|
});
|
|
146
|
-
return (_jsx(Tag, { className: classes, ...props, onClick:
|
|
150
|
+
return (_jsx(Tag, { className: classes, ...props, onClick: onClick }, `${name}-${i}`));
|
|
147
151
|
}), search.result?.length === 0 && (_jsx("div", { className: "search-bar__no-result", children: message(ubloLang, "no-results", messages) }))] })] })] }));
|
|
148
152
|
};
|
|
149
153
|
export default React.memo(SearchBar);
|