This commit is contained in:
Andras Schmelczer 2026-03-25 08:05:50 +00:00
parent c997ea46a5
commit 30055ab870
13 changed files with 165 additions and 83 deletions

View file

@ -9,7 +9,7 @@ import { CloseIcon } from './icons/CloseIcon';
interface DestinationDropdownProps {
destinations: Destination[];
loading: boolean;
onSelect: (slug: string, label: string) => void;
onSelect: (slug: string, label: string, lat: number, lon: number) => void;
onClear?: () => void;
value?: string;
placeholder?: string;
@ -66,7 +66,7 @@ export function DestinationDropdown({
const handleSelect = useCallback(
(dest: Destination) => {
onSelect(dest.slug, dest.name);
onSelect(dest.slug, dest.name, dest.lat, dest.lon);
setOpen(false);
setFilter('');
setActiveIndex(-1);