book detail page text area 줄바꿈 반영 안되는 문제
Closed this issue · 2 comments
parkjineon commented
book detail page 소감문 부분 입력 그대로 출력에 안 나옴
parkjineon commented
<Descriptions.Item label="소감문" span={2} labelStyle={{ "alignItems" : "center", "justifyContent" : "center"}}><textarea name='bookReview' style={{'width':'100%', 'maxHeight' : '200px'}} defaultValue={review} onChange={onReviewHandler}/></Descriptions.Item>
parkjineon commented
book detail page
<Descriptions.Item labelStyle={{ "alignItems" : "center", "justifyContent" : "center"}} contentStyle={{"whiteSpace":"preWrap"}} label="소감문" span={2}>{review}</Descriptions.Item>
whiteSpace 속성 preWrap으로 주기