From 951d3b595761987bebb48a4791f4917426f9e160 Mon Sep 17 00:00:00 2001 From: "jiwon93.son" Date: Tue, 16 Jul 2024 17:07:21 +0900 Subject: [PATCH] =?UTF-8?q?[MobileSendPopUp]=20SHOPTIME-2630=20-=20input?= =?UTF-8?q?=20=ED=81=B4=EB=A6=AD=EC=8B=9C=20mobilenumber=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=ED=99=94=20=EC=9D=B4=EC=8A=88=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MobileSend/MobileSendPopUp.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx b/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx index be1cab12..bc286a7a 100644 --- a/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx +++ b/com.twin.app.shoptime/src/components/MobileSend/MobileSendPopUp.jsx @@ -46,6 +46,7 @@ import { clearCurationCoupon, setEventIssueReq, } from '../../actions/eventActions'; +import { sendLogShopByMobile } from '../../actions/logActions'; import { ACTIVE_POPUP, LOG_TP_NO, @@ -57,7 +58,6 @@ import TPopUp from '../TPopUp/TPopUp'; import HistoryPhoneNumber from './HistoryPhoneNumber/HistoryPhoneNumber'; import css from './MobileSendPopUp.module.less'; import SMSNumKeyPad from './SMSNumKeyPad'; -import { sendLogShopByMobile } from '../../actions/logActions'; const Container = SpotlightContainerDecorator( { enterTo: "last-focused" }, @@ -135,10 +135,8 @@ export default function MobileSendPopUp({ const handleInputClick = () => { setKeyPadOff(false); - if (recentSentNumber && recentSentNumber.length > 0) { + if (recentSentNumber && recentSentNumber.length > 0 && keyPadOff) { setMobileNumber(recentSentNumber[0]); - } else { - setMobileNumber(""); } }; @@ -286,7 +284,9 @@ export default function MobileSendPopUp({ }, }) ); - spotlight.focus(); + setTimeout(() => { + spotlight.focus("history-container"); + }); } }; @@ -586,7 +586,7 @@ export default function MobileSendPopUp({ {keyPadOff ? ( - +