[DetailPanel] youmaylike 4way focus

This commit is contained in:
고동영
2024-07-30 10:00:15 +09:00
parent 7deca2ccea
commit 9c2f3b1e07

View File

@@ -77,10 +77,12 @@ export default function YouMayLike({
}, [dispatch, lgCatCd, panelInfo]); }, [dispatch, lgCatCd, panelInfo]);
const cursorVisibleOnFocus = useCallback(() => { const cursorVisibleOnFocus = useCallback(() => {
if (productInfo && cursorVisible) { if (cursorVisible) {
cursorOpen.current.start(() => { cursorOpen.current.start(() => {
setExpanded(true); setExpanded(true);
}); });
} else if (productInfo) {
setExpanded(true);
} }
}, [productInfo, cursorVisible]); }, [productInfo, cursorVisible]);