diff --git a/src/components/flight/NewFlightApprovalsTable.js b/src/components/flight/NewFlightApprovalsTable.js index 1ddbd173..0ee047c5 100644 --- a/src/components/flight/NewFlightApprovalsTable.js +++ b/src/components/flight/NewFlightApprovalsTable.js @@ -232,6 +232,7 @@ export default function NewFlightApprovalsTable(props) { ), dataIndex: 'areaList', align: 'center', + editable: true, width: '110px', render: areaList => { return areaList.length <= 1 ? <>- : '-'; @@ -475,6 +476,7 @@ export default function NewFlightApprovalsTable(props) { { dataIndex: '세부사항', align: 'center', + editable: true, width: '110px', render: text => { return <>기타; @@ -614,6 +616,9 @@ export default function NewFlightApprovalsTable(props) { }} onRow={record => ({ onClick: event => { + if (editingKey !== '') { + return; // edit 상태면 이벤트 실행 안 함 + } // 이벤트 버블링을 막기 위해 클릭된 요소가 'Edit' 버튼인지 확인 if ( event.target.tagName !== 'BUTTON' && @@ -805,6 +810,9 @@ export default function NewFlightApprovalsTable(props) { }} onRow={record => ({ onClick: event => { + if (editingKey !== '') { + return; // edit 상태면 이벤트 실행 안 함 + } // 이벤트 버블링을 막기 위해 클릭된 요소가 'Edit' 버튼인지 확인 if ( event.target.tagName !== 'BUTTON' && @@ -856,7 +864,7 @@ const EditableCell = ({ }) => { const inputNode = inputType === 'number' ? ( - { if (!/[0-9]/.test(e.key)) {