{orderPhnNo && (
diff --git a/com.twin.app.shoptime/src/views/DetailPanel/components/FavoriteBtn.jsx b/com.twin.app.shoptime/src/views/DetailPanel/components/FavoriteBtn.jsx
index 0fd47ee7..152e84de 100644
--- a/com.twin.app.shoptime/src/views/DetailPanel/components/FavoriteBtn.jsx
+++ b/com.twin.app.shoptime/src/views/DetailPanel/components/FavoriteBtn.jsx
@@ -66,20 +66,33 @@ export default function FavoriteBtn({
onFavoriteFlagChanged(favoriteFlag === 'Y' ? 'N' : 'Y');
}, [dispatch, favoriteFlag, onFavoriteFlagChanged]);
+ const handleFavoriteKeyDown = useCallback((e) => {
+ if (e.key === 'Enter') {
+ e.preventDefault();
+ handleFavoriteClick();
+ }
+ }, [handleFavoriteClick]);
+
+ const handleSpotlightDown = useCallback((e) => {
+ e.stopPropagation();
+ }, []);
+
return (
{activePopup === Config.ACTIVE_POPUP.favoritePopup && (
{
const currentSentMenuRef = useRef(null);
const focusedContainerIdRef = useRef(panelInfo?.focusedContainerId);
+ // 마운트 로그
+ useEffect(() => {
+ console.log('[JustForYouPanel] 마운트됨', {
+ isOnTop,
+ recentItemsCount: recentItems?.length || 0,
+ timestamp: Date.now(),
+ });
+
+ return () => {
+ console.log('[JustForYouPanel] 언마운트됨', {
+ timestamp: Date.now(),
+ });
+ };
+ }, []);
+
const handleScroll = useCallback((e) => {
setShowButton(e.scrollTop === 0);
}, []);
@@ -120,7 +135,24 @@ const JustForYouPanel = ({ panelInfo, isOnTop, ...rest }) => {
}
}, []);
+ const handleWrapClickCapture = useCallback(() => {
+ console.log("[JustForYouPanel] wrapper capture: 상위 div 통과");
+ }, []);
+
+ const handlePanelClickCapture = useCallback(() => {
+ console.log("[JustForYouPanel] TPanel capture: panel 통과");
+ }, []);
+
+ const handleBodyClickCapture = useCallback(() => {
+ console.log("[JustForYouPanel] TBody capture: body 통과");
+ }, []);
+
+ const handleButtonWrapperClickCapture = useCallback(() => {
+ console.log("[JustForYouPanel] 버튼 감싸는 div capture: 버튼 바로 위");
+ }, []);
+
const handleTopButtonClick = useCallback(() => {
+ console.log("[JustForYouPanel] TButton onClick: TOP 버튼 클릭");
if (cbChangePageRef.current) {
cbChangePageRef.current(0, true);
}
@@ -132,6 +164,10 @@ const JustForYouPanel = ({ panelInfo, isOnTop, ...rest }) => {
}
}, [recentItems]);
+ const handleTopButtonSpotlightDown = useCallback((e) => {
+ e.stopPropagation();
+ }, []);
+
const renderItem = useCallback(
(item) => {
const {
@@ -234,9 +270,15 @@ const JustForYouPanel = ({ panelInfo, isOnTop, ...rest }) => {
//
//
//
-