[playerpanel] TabCotentsButton onClick item focus

This commit is contained in:
고동영
2024-05-10 18:41:07 +09:00
parent fc9c83cb00
commit ce28e905d9
5 changed files with 36 additions and 27 deletions

View File

@@ -32,7 +32,6 @@ export default function LiveChannelContents({ liveInfos, setSelectedIndex }) {
const handleItemClick = () => {
setSelectedIndex(index);
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -55,18 +54,13 @@ export default function LiveChannelContents({ liveInfos, setSelectedIndex }) {
timezone={timezone}
onClick={handleItemClick}
type={TYPES.liveHorizontal}
spotlightId={`liveChannel-Item-${index}`}
spotlightId={`tabChannel-video-${index}`}
/>
);
},
[liveInfos, dispatch]
);
useEffect(() => {
setTimeout(() => {
Spotlight.focus("liveChannel-Item-0");
});
}, [liveInfos]);
return (
<>
<div className={css.container}>