From a3fe60ca70c40813ae7d4971b1871dd08424bf39 Mon Sep 17 00:00:00 2001 From: optrader Date: Thu, 11 Dec 2025 17:08:47 +0900 Subject: [PATCH] =?UTF-8?q?[251211]=20fix:=20IntroPanel.new.jsx=20?= =?UTF-8?q?=ED=8F=AC=EC=BB=A4=EC=8A=A4=20=EC=A1=B0=EC=A0=95-2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ• ์ปค๋ฐ‹ ์‹œ๊ฐ„: 2025. 12. 11. 17:08:47 ๐Ÿ“Š ๋ณ€๊ฒฝ ํ†ต๊ณ„: โ€ข ์ด ํŒŒ์ผ: 1๊ฐœ โ€ข ์ถ”๊ฐ€: +8์ค„ โ€ข ์‚ญ์ œ: -13์ค„ ๐Ÿ“ ์ˆ˜์ •๋œ ํŒŒ์ผ: ~ com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx ๐Ÿ”ง ์ฃผ์š” ๋ณ€๊ฒฝ ๋‚ด์šฉ: โ€ข ์ฝ”๋“œ ์ •๋ฆฌ ๋ฐ ์ตœ์ ํ™” Performance: ์ฝ”๋“œ ์ตœ์ ํ™”๋กœ ์„ฑ๋Šฅ ๊ฐœ์„  ๊ธฐ๋Œ€ --- .../src/views/IntroPanel/IntroPanel.new.jsx | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx b/com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx index 1d68f94b..7e212528 100644 --- a/com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx +++ b/com.twin.app.shoptime/src/views/IntroPanel/IntroPanel.new.jsx @@ -53,7 +53,7 @@ import { types } from "../../actions/actionTypes"; import { focusById } from "../../utils/spotlight-utils"; const Container = SpotlightContainerDecorator( - { enterTo: "last-focused" }, + { enterTo: "#selectAllCheckbox" }, "div", ); @@ -845,26 +845,21 @@ function IntroPanelWithOptional({ //20250903 pjh //selectAll์—์„œ ํฌ์ปค์Šค ์˜ฌ๋ ธ์„๋•Œ ์ฒ˜๋ฆฌ ๋ณ€๊ฒฝ. const onSelectAllSpotlightUp = () => { - const focusTimer = setTimeout(() => { - Spotlight.focus("optionalCheckbox"); + setTimeout(() => { + focusById("optionalCheckbox"); }, 10); - return () => { - clearTimeout(focusTimer); - }; + // focusById("optionalCheckbox"); }; //Optional terms ์ฒดํฌ๋ฐ•์Šค๊ฐ€ ์ฒดํฌ๊ฐ€ ๋˜์–ด์žˆ์„๋•Œ ์•„๋ž˜๋กœ ๋‚ด๋ฆฌ๋ฉด(3๊ฐœ์ „๋ถ€ ์ฒดํฌ๊ธฐ์ค€) agree๋กœ ๊ฐ€๊ณ , ์•„๋‹๊ฒฝ์šฐ select all๋กœ ํฌ์ปค์Šค์ด๋™ํ•ด์•ผํ•จ. const onOptionalTermSpotlightDown = () => { - const focusTimer = setTimeout(() => { + setTimeout(() => { if (termsChecked && privacyChecked && optionalChecked) { - Spotlight.focus("agreeButton"); + focusById("agreeButton"); } else { - Spotlight.focus("selectAllCheckbox"); + focusById("selectAllCheckbox"); } }, 10); - return () => { - clearTimeout(focusTimer); - }; }; // useEffect(() => { @@ -905,7 +900,7 @@ function IntroPanelWithOptional({ handleCancel={onCancel} spotlightId={spotlightId} > - + {/* ์ฒซ ๋ฒˆ์งธ ์˜์—ญ: ํ—ค๋” ์„น์…˜ */}