[지라 이슈 없음] "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}>
|
||||
<TBody className={css.trendingNow} scrollable={false}>
|
||||
<TBody
|
||||
className={css.trendingNow}
|
||||
scrollable={false}
|
||||
spotlightDisabled={!isOnTop}
|
||||
>
|
||||
<TVerticalPagenator
|
||||
className={css.tVerticalPagenator}
|
||||
spotlightId={"trandingnow_verticalPagenator"}
|
||||
@@ -410,10 +414,10 @@ const TrendingNowPanel = ({ panelInfo, spotlightId, isOnTop, ...rest }) => {
|
||||
const propsAreEqual = (prev, next) => {
|
||||
const keys = Object.keys(prev);
|
||||
const nextKeys = Object.keys(next);
|
||||
if (!next.isOnTop) {
|
||||
//ignore event on background
|
||||
return true;
|
||||
}
|
||||
// if (!next.isOnTop) {
|
||||
// //ignore event on background
|
||||
// return true;
|
||||
// }
|
||||
if (keys.length !== nextKeys.length) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user