Skip to content

Commit

Permalink
Fix: ref로 인한 버그를 수정하다
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiyeom committed Feb 15, 2024
1 parent eed7bfd commit 81756ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const ControlArea = ({
const [isDatePickerOpened, setIsDatePickerOpened] = useState(false);
const outerRef = useRef<HTMLDivElement>(null);
const selectedApplicationResultStatusRef = useRef<HTMLInputElement>(null);
const selectedInterviewStartedAtRef = useRef<HTMLInputElement>(null);

const handleSelectDate = useCallback(
(clickedDate: Dayjs) => {
Expand Down Expand Up @@ -194,6 +195,7 @@ const ControlArea = ({
disabled={isInterviewConfirmed}
defaultValue={timeOptions.find((option) => option.value === dayjs(date).format())}
{...register(`interviewStartedAt`, { required: true })}
ref={selectedInterviewStartedAtRef}
/>
</Styled.SelectTimeField>
</Styled.SelectContainer>
Expand Down

0 comments on commit 81756ca

Please sign in to comment.