From 946be68fd010df9e2b6d16e6cde39e2537dc8ea3 Mon Sep 17 00:00:00 2001 From: "hyunwoo93.cha" Date: Tue, 20 Feb 2024 17:26:25 +0900 Subject: [PATCH] =?UTF-8?q?[CategoryPanel]=20Dropdown=20=EC=84=A0=ED=83=9D?= =?UTF-8?q?=20=EC=8B=9C=20=EC=B4=88=EA=B8=B0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/CategoryPanel/CategoryPanel.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/com.twin.app.shoptime/src/views/CategoryPanel/CategoryPanel.jsx b/com.twin.app.shoptime/src/views/CategoryPanel/CategoryPanel.jsx index a9d46ea9..5c67816a 100644 --- a/com.twin.app.shoptime/src/views/CategoryPanel/CategoryPanel.jsx +++ b/com.twin.app.shoptime/src/views/CategoryPanel/CategoryPanel.jsx @@ -15,7 +15,6 @@ import THeader from "../../components/THeader/THeader"; import TopButton from "../../components/TopButton/TopButton"; import TPanel from "../../components/TPanel/TPanel"; import useScrollTo from "../../hooks/useScrollTo"; -import useScrollToTop from "../../hooks/useScrollToTop"; import { $L } from "../../utils/helperMethods"; import { SpotlightIds } from "../../utils/SpotlightIds"; import ItemContents from "./CategoryContents/ItemContents/ItemContents"; @@ -109,6 +108,10 @@ export default function CategoryPanel() { Spotlight.focus("tab-0"); }, [panelInfos]); + useEffect(() => { + setContainerLastFocusedElement(null, ["showProductBox"]); + }, [dropDownTab]); + const handleTopButtonClick = useCallback(() => { setContainerLastFocusedElement(null, ["categoryContentsBox"]); Spotlight.focus(`tab-${tab}`);