Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

모임 만들기 맞지막 스탭 포커싱 #462

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions frontend/src/components/Funnel/FunnelTextArea/FunnelTextArea.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
import { useTheme } from '@emotion/react';
import * as S from './FunnelTextArea.style';
import { forwardRef } from 'react';
import { forwardRef, Ref, TextareaHTMLAttributes } from 'react';

interface FunnelTextAreaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
extends TextareaHTMLAttributes<HTMLTextAreaElement> {}

export default forwardRef(function FunnelTextArea(props: FunnelTextAreaProps) {
export default forwardRef(function FunnelTextArea(
props: FunnelTextAreaProps,
ref?: Ref<HTMLTextAreaElement>,
) {
const { ...rest } = props;

const theme = useTheme();

return <textarea css={S.textArea({ theme })} {...rest} />;
return <textarea ref={ref} css={S.textArea({ theme })} {...rest} />;
});
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface DescriptionStepProps {
export default function DescriptionStep(props: DescriptionStepProps) {
const { description, onDescriptionChange, onButtonClick } = props;

const inputRef = useRef<HTMLInputElement>(null);
const inputRef = useRef<HTMLTextAreaElement>(null);

useEffect(() => {
if (inputRef.current) {
Expand Down
Loading