[DetailPanel] youmaylike 4way focus
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user