mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-21 22:31:46 +00:00
add autofocus to place search
This commit is contained in:
@@ -236,6 +236,7 @@ export default function PlaceFormModal({
|
|||||||
onChange={e => setMapsSearch(e.target.value)}
|
onChange={e => setMapsSearch(e.target.value)}
|
||||||
onKeyDown={e => e.key === 'Enter' && (e.preventDefault(), handleMapsSearch())}
|
onKeyDown={e => e.key === 'Enter' && (e.preventDefault(), handleMapsSearch())}
|
||||||
placeholder={t('places.mapsSearchPlaceholder')}
|
placeholder={t('places.mapsSearchPlaceholder')}
|
||||||
|
autoFocus
|
||||||
className="flex-1 border border-slate-200 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-slate-400 bg-white"
|
className="flex-1 border border-slate-200 rounded-lg px-3 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-slate-400 bg-white"
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user