diff --git a/src/components/CurrencyInput/index.jsx b/src/components/CurrencyInput/index.jsx index adcfcdf..94f5697 100644 --- a/src/components/CurrencyInput/index.jsx +++ b/src/components/CurrencyInput/index.jsx @@ -1,6 +1,6 @@ import * as S from '../../styles/CurrencyInput.styles'; -function CurrencyInput({ value, setValue }) { +function CurrencyInput({ value, setValue, autofocus }) { const getRenderValue = () => { if (value === '') { return ''; @@ -28,6 +28,7 @@ function CurrencyInput({ value, setValue }) { value={getRenderValue()} onChange={handleOnChange} placeholder="가격을 입력해주세요" + autoFocus={autofocus} /> ); diff --git a/src/pages/WriteSteps/PriceStep.jsx b/src/pages/WriteSteps/PriceStep.jsx index 79c4e4a..1d71c91 100644 --- a/src/pages/WriteSteps/PriceStep.jsx +++ b/src/pages/WriteSteps/PriceStep.jsx @@ -11,6 +11,7 @@ function PriceStep({ gotoNextStep, gotoPrevStep, price, setPrice }) {