[CategoryPanel] Dropdown 선택 시 초기화
This commit is contained in:
@@ -15,7 +15,6 @@ import THeader from "../../components/THeader/THeader";
|
|||||||
import TopButton from "../../components/TopButton/TopButton";
|
import TopButton from "../../components/TopButton/TopButton";
|
||||||
import TPanel from "../../components/TPanel/TPanel";
|
import TPanel from "../../components/TPanel/TPanel";
|
||||||
import useScrollTo from "../../hooks/useScrollTo";
|
import useScrollTo from "../../hooks/useScrollTo";
|
||||||
import useScrollToTop from "../../hooks/useScrollToTop";
|
|
||||||
import { $L } from "../../utils/helperMethods";
|
import { $L } from "../../utils/helperMethods";
|
||||||
import { SpotlightIds } from "../../utils/SpotlightIds";
|
import { SpotlightIds } from "../../utils/SpotlightIds";
|
||||||
import ItemContents from "./CategoryContents/ItemContents/ItemContents";
|
import ItemContents from "./CategoryContents/ItemContents/ItemContents";
|
||||||
@@ -109,6 +108,10 @@ export default function CategoryPanel() {
|
|||||||
Spotlight.focus("tab-0");
|
Spotlight.focus("tab-0");
|
||||||
}, [panelInfos]);
|
}, [panelInfos]);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
setContainerLastFocusedElement(null, ["showProductBox"]);
|
||||||
|
}, [dropDownTab]);
|
||||||
|
|
||||||
const handleTopButtonClick = useCallback(() => {
|
const handleTopButtonClick = useCallback(() => {
|
||||||
setContainerLastFocusedElement(null, ["categoryContentsBox"]);
|
setContainerLastFocusedElement(null, ["categoryContentsBox"]);
|
||||||
Spotlight.focus(`tab-${tab}`);
|
Spotlight.focus(`tab-${tab}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user