Skip to content

Commit

Permalink
feat: enter 키를 눌렀을 때 handleBlurBillRequest가 실행되는 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
soi-ha committed Aug 21, 2024
1 parent 448b5ea commit 6bc86f6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/src/components/StepList/BillStepItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ const BillStepItem: React.FC<BillStepItemProps> = ({
))}

{isAddEditableItem && isLastBillItem && (
<EditableItem backgroundColor="lightGrayContainer" onBlur={handleBlurBillRequest}>
<EditableItem
backgroundColor="lightGrayContainer"
onBlur={handleBlurBillRequest}
onKeyDown={e => {
if (e.key === 'Enter') {
handleBlurBillRequest();
}
}}
>
<EditableItem.Input
placeholder="지출 내역"
textSize="bodyBold"
Expand Down

0 comments on commit 6bc86f6

Please sign in to comment.