[홈패널] 스타트 포커스 추가

This commit is contained in:
sungmin.in
2024-02-22 19:31:07 +09:00
parent b896d148a5
commit a4f4d9464f
3 changed files with 12 additions and 0 deletions

View File

@@ -69,6 +69,10 @@ export default function HomeBannerTemplate1() {
}
}, [homeMainContentsBannerInfos, dispatch]);
useEffect(() => {
Spotlight.focus("top", { enterTo: "topmost" });
}, [dispatch, bannerInfos]);
return (
<Container className={css.container} spotlightId={"top"}>
<div className={css.homeTemplateBox}>

View File

@@ -71,6 +71,10 @@ export default function HomeBannerTemplate2({ ...rest }) {
}
}, [homeMainContentsBannerInfos, dispatch]);
useEffect(() => {
Spotlight.focus("top", { enterTo: "topmost" });
}, [dispatch, bannerInfos]);
return (
<Container className={css.container} spotlightId="top">
<div className={css.homeTemplateBox}>

View File

@@ -72,6 +72,10 @@ export default function HomeBannerTemplate3({ ...rest }) {
}
}, [homeMainContentsBannerInfos, dispatch]);
useEffect(() => {
Spotlight.focus("top", { enterTo: "topmost" });
}, [dispatch, bannerInfos]);
return (
<Container className={css.homeTemplateBox} spotlightId="top">
<div className={css.mainBox}>