[playerpanel] TabCotentsButton onClick item focus
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user