[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,
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({
</SpottableComponent>
</InputContainer>
{keyPadOff ? (
<Container>
<Container spotlightId="history-container">
<HistoryPhoneNumber
handleClickSelect={handleClickSelect}
handleDelete={handleDelete}