[지라 이슈 없음] "isOnTop" prop value applied and set the spotlightDisabled property
Changed files: 1. TrendingNowPanel.jsx
This commit is contained in:
@@ -298,7 +298,11 @@ const TrendingNowPanel = ({ panelInfo, spotlightId, isOnTop, ...rest }) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<TPanel spotlightId={spotlightId}>
|
<TPanel spotlightId={spotlightId}>
|
||||||
<TBody className={css.trendingNow} scrollable={false}>
|
<TBody
|
||||||
|
className={css.trendingNow}
|
||||||
|
scrollable={false}
|
||||||
|
spotlightDisabled={!isOnTop}
|
||||||
|
>
|
||||||
<TVerticalPagenator
|
<TVerticalPagenator
|
||||||
className={css.tVerticalPagenator}
|
className={css.tVerticalPagenator}
|
||||||
spotlightId={"trandingnow_verticalPagenator"}
|
spotlightId={"trandingnow_verticalPagenator"}
|
||||||
@@ -410,10 +414,10 @@ const TrendingNowPanel = ({ panelInfo, spotlightId, isOnTop, ...rest }) => {
|
|||||||
const propsAreEqual = (prev, next) => {
|
const propsAreEqual = (prev, next) => {
|
||||||
const keys = Object.keys(prev);
|
const keys = Object.keys(prev);
|
||||||
const nextKeys = Object.keys(next);
|
const nextKeys = Object.keys(next);
|
||||||
if (!next.isOnTop) {
|
// if (!next.isOnTop) {
|
||||||
//ignore event on background
|
// //ignore event on background
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
if (keys.length !== nextKeys.length) {
|
if (keys.length !== nextKeys.length) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user