[디테일] 하단 구매 토스트 노출 관련수정
- 디테일 상단 백버튼에 포커스가면 clearAllToasts 처리.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user