Skip to content

Commit

Permalink
feat: 지점 설정 클릭 시, 서치바 바로 호버
Browse files Browse the repository at this point in the history
  • Loading branch information
jiohjung98 committed May 31, 2024
1 parent 5a29ce1 commit b203034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/home/SearchModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const SearchModal: React.FC<SearchModalProps> = ({ onClose, onBranchSelect }) =>
const [selectedBranch, setSelectedBranch] = useState<Branch | null>(null);
const inputRef = useRef<HTMLInputElement>(null);

useEffect(() => {
if (inputRef.current) {
inputRef.current.focus();
}
}, []);

useEffect(() => {
const fetchData = async () => {
try {
Expand Down

0 comments on commit b203034

Please sign in to comment.