[디테일] 하단 구매 토스트 노출 관련수정

- 디테일 상단 백버튼에 포커스가면 clearAllToasts 처리.
This commit is contained in:
junghoon86.park
2025-10-30 14:26:29 +09:00
parent b727499e4b
commit 8e3d03ef19
2 changed files with 14 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export default function THeaderCustom({
onBackButton,
onSpotlightUp,
onSpotlightLeft,
onBackButtonFocus,
marqueeDisabled = true,
onClick,
ariaLabel,
@@ -65,12 +66,19 @@ export default function THeaderCustom({
}
};
const _onBackButtonFocus = useCallback(() => {
if(onBackButtonFocus){
onBackButtonFocus();
}
},[onBackButtonFocus])
return (
<Container className={classNames(css.tHeaderCustom, className)} {...rest}>
{onBackButton && (
<SpottableComponent
className={css.button}
onClick={_onClick}
onFocus={_onBackButtonFocus}
spotlightId={"spotlightId_backBtn"}
onSpotlightUp={_onSpotlightUp}
onSpotlightLeft={_onSpotlightLeft}