[DetailPanel] 백버튼에서 왼쪽 사방향키 누를 시 포커스 빠지는 현상 수정

This commit is contained in:
고동영
2024-05-17 17:12:12 +09:00
parent 21cb34a387
commit 13bc12a327
2 changed files with 9 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export default function THeader({
className,
onBackButton,
onSpotlightUp,
onSpotlightLeft,
marqueeDisabled = true,
onClick,
children,
@@ -40,6 +41,12 @@ export default function THeader({
}
};
const _onSpotlightLeft = (e) => {
if (onSpotlightLeft) {
onSpotlightLeft(e);
}
};
return (
<Container className={classNames(css.tHeader, className)}>
{onBackButton && (
@@ -48,6 +55,7 @@ export default function THeader({
onClick={_onClick}
spotlightId={"spotlightId_backBtn"}
onSpotlightUp={_onSpotlightUp}
onSpotlightLeft={_onSpotlightLeft}
/>
)}
<Marquee