From ff383fa378b63abc2190716a926ec164ea54bb02 Mon Sep 17 00:00:00 2001 From: sanguu516 Date: Wed, 12 Jun 2024 10:28:14 +0900 Subject: [PATCH] =?UTF-8?q?=ED=82=A4=EB=B3=B4=EB=93=9C=20=EC=9D=B4?= =?UTF-8?q?=EB=B2=A4=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/flight/FlightApprovalsReport.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/flight/FlightApprovalsReport.js b/src/components/flight/FlightApprovalsReport.js index ac4c45a9..aefa5e39 100644 --- a/src/components/flight/FlightApprovalsReport.js +++ b/src/components/flight/FlightApprovalsReport.js @@ -16,6 +16,12 @@ export default function FlightApprovalsReport(props) { endDate: dayjs().format('YYYY-MM-DD') }); + const handleKeyDown = e => { + if (e.key === 'Enter') { + props.handlerSearch(filterId, searchDate, filterArea); + } + }; + return (
@@ -50,6 +56,7 @@ export default function FlightApprovalsReport(props) { placeholder='민원번호 또는 검토결과를 입력해주세요.' value={filterId} onChange={e => setFilterId(`${e.target.value}`)} + onKeyPress={handleKeyDown} />