Fix: Prevent form submission on location selection

This commit is contained in:
gpt-engineer-app[bot]
2025-10-02 20:30:11 +00:00
parent 4d7c304976
commit b7e6cc9111

View File

@@ -216,6 +216,7 @@ export function LocationSearch({ onLocationSelect, initialLocationId, className
<div className="divide-y"> <div className="divide-y">
{results.map((result) => ( {results.map((result) => (
<button <button
type="button"
key={result.place_id} key={result.place_id}
onClick={() => handleSelectResult(result)} onClick={() => handleSelectResult(result)}
className="w-full text-left p-3 hover:bg-accent transition-colors" className="w-full text-left p-3 hover:bg-accent transition-colors"