Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(geomap): leave the search field as typed when a result is taken
Elian Doran82c24a4b2a2d
diff --git a/apps/client/src/widgets/collections/geomap/SearchBox.tsx b/apps/client/src/widgets/collections/geomap/SearchBox.tsxindex 2787939a0a..3a3bea2830 100644--- a/apps/client/src/widgets/collections/geomap/SearchBox.tsx+++ b/apps/client/src/widgets/collections/geomap/SearchBox.tsx@@ -175,7 +175,6 @@ export default function SearchBox({ notes, onPickPlace }: SearchBoxProps) {if (entry.kind === "geocode") {runGeocoder(entry.query);} else if (entry.kind === "marker" || entry.kind === "place") {- setQuery(entry.label);setDismissed(true);// A note of the map's own has a marker already; only a place needs one put down for it.onPickPlace(entry.kind === "place" ? entry.result : null);