From bccd54195aaeda3d6314522eceaec4da0bca6bd8 Mon Sep 17 00:00:00 2001 From: sally4405 Date: Fri, 5 Jun 2020 16:27:56 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=9A=94=EA=B8=88=20=EC=B0=A8=ED=8A=B8?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 초기화, 저장 후에 차트에 바로 적용되도록 수정 #45 --- client/src/components/SearchForm/FormPrice.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/SearchForm/FormPrice.jsx b/client/src/components/SearchForm/FormPrice.jsx index 0e6833a..10ea2ed 100644 --- a/client/src/components/SearchForm/FormPrice.jsx +++ b/client/src/components/SearchForm/FormPrice.jsx @@ -93,8 +93,8 @@ const FormPrice = () => { })); const [priceRange, setPriceRange] = useState([minPrice, maxPrice]); - const [leftDimWidth, setLeftDimWidth] = useState(0); - const [rightDimWidth, setRightDimWidth] = useState(0); + const [leftDimWidth, setLeftDimWidth] = useState(minPrice / 5); + const [rightDimWidth, setRightDimWidth] = useState((500-maxPrice) / 5); const handleChange = (event, newPriceRange) => { setPriceRange(newPriceRange); @@ -104,6 +104,8 @@ const FormPrice = () => { const onReset = () => { setPriceRange([0, 500]); + setLeftDimWidth(0); + setRightDimWidth(0); dispatch(reset()); };