[251211] fix: IntroPanel.new.jsx 포커스 조정-3
🕐 커밋 시간: 2025. 12. 11. 17:20:46 📊 변경 통계: • 총 파일: 1개 • 추가: +11줄 • 삭제: -4줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx
This commit is contained in:
@@ -282,7 +282,7 @@ function IntroPanelWithOptional({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const focusTimer = setTimeout(() => {
|
const focusTimer = setTimeout(() => {
|
||||||
focusById("selectAllCheckbox");
|
focusById("selectAllCheckbox");
|
||||||
}, 500);
|
}, 0);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
clearTimeout(focusTimer);
|
clearTimeout(focusTimer);
|
||||||
@@ -844,15 +844,22 @@ function IntroPanelWithOptional({
|
|||||||
|
|
||||||
//20250903 pjh
|
//20250903 pjh
|
||||||
//selectAll에서 포커스 올렸을때 처리 변경.
|
//selectAll에서 포커스 올렸을때 처리 변경.
|
||||||
const onSelectAllSpotlightUp = () => {
|
const onSelectAllSpotlightUp = (event) => {
|
||||||
|
if (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
focusById("optionalCheckbox");
|
focusById("optionalCheckbox");
|
||||||
}, 10);
|
}, 10);
|
||||||
// focusById("optionalCheckbox");
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//Optional terms 체크박스가 체크가 되어있을때 아래로 내리면(3개전부 체크기준) agree로 가고, 아닐경우 select all로 포커스이동해야함.
|
//Optional terms 체크박스가 체크가 되어있을때 아래로 내리면(3개전부 체크기준) agree로 가고, 아닐경우 select all로 포커스이동해야함.
|
||||||
const onOptionalTermSpotlightDown = () => {
|
const onOptionalTermSpotlightDown = (event) => {
|
||||||
|
if (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (termsChecked && privacyChecked && optionalChecked) {
|
if (termsChecked && privacyChecked && optionalChecked) {
|
||||||
focusById("agreeButton");
|
focusById("agreeButton");
|
||||||
|
|||||||
Reference in New Issue
Block a user