[MobileSendPopUp] SHOPTIME-2630

- input 클릭시 mobilenumber 초기화 이슈 수정
This commit is contained in:
jiwon93.son
2024-07-16 17:07:21 +09:00
parent c2cb6bdd75
commit 951d3b5957

View File

@@ -46,6 +46,7 @@ import {
clearCurationCoupon, clearCurationCoupon,
setEventIssueReq, setEventIssueReq,
} from '../../actions/eventActions'; } from '../../actions/eventActions';
import { sendLogShopByMobile } from '../../actions/logActions';
import { import {
ACTIVE_POPUP, ACTIVE_POPUP,
LOG_TP_NO, LOG_TP_NO,
@@ -57,7 +58,6 @@ import TPopUp from '../TPopUp/TPopUp';
import HistoryPhoneNumber from './HistoryPhoneNumber/HistoryPhoneNumber'; import HistoryPhoneNumber from './HistoryPhoneNumber/HistoryPhoneNumber';
import css from './MobileSendPopUp.module.less'; import css from './MobileSendPopUp.module.less';
import SMSNumKeyPad from './SMSNumKeyPad'; import SMSNumKeyPad from './SMSNumKeyPad';
import { sendLogShopByMobile } from '../../actions/logActions';
const Container = SpotlightContainerDecorator( const Container = SpotlightContainerDecorator(
{ enterTo: "last-focused" }, { enterTo: "last-focused" },
@@ -135,10 +135,8 @@ export default function MobileSendPopUp({
const handleInputClick = () => { const handleInputClick = () => {
setKeyPadOff(false); setKeyPadOff(false);
if (recentSentNumber && recentSentNumber.length > 0) { if (recentSentNumber && recentSentNumber.length > 0 && keyPadOff) {
setMobileNumber(recentSentNumber[0]); 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({
</SpottableComponent> </SpottableComponent>
</InputContainer> </InputContainer>
{keyPadOff ? ( {keyPadOff ? (
<Container> <Container spotlightId="history-container">
<HistoryPhoneNumber <HistoryPhoneNumber
handleClickSelect={handleClickSelect} handleClickSelect={handleClickSelect}
handleDelete={handleDelete} handleDelete={handleDelete}