diff --git a/src/components/home/SearchModal.tsx b/src/components/home/SearchModal.tsx index d249c13..66c7c7d 100644 --- a/src/components/home/SearchModal.tsx +++ b/src/components/home/SearchModal.tsx @@ -16,6 +16,12 @@ const SearchModal: React.FC = ({ onClose, onBranchSelect }) => const [selectedBranch, setSelectedBranch] = useState(null); const inputRef = useRef(null); + useEffect(() => { + if (inputRef.current) { + inputRef.current.focus(); + } + }, []); + useEffect(() => { const fetchData = async () => { try {