File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -84,13 +84,9 @@ export default class ReactListView extends Component {
84
84
if ( index < this . state . _instances . _originalPositions . length - 1 ) {
85
85
nextNode = this . state . _instances . _originalPositions [ index + 1 ]
86
86
}
87
- if ( nextNode ) {
88
- }
89
- if ( index === 0 ) {
90
- if ( currentWindowScrollTop === c . originalPosition ) {
91
- currentNode . style . position = ''
92
- ignoreCheck = true
93
- }
87
+ if ( index === 0 && currentWindowScrollTop === c . originalPosition ) {
88
+ currentNode . style . position = ''
89
+ ignoreCheck = true
94
90
}
95
91
if ( ! ignoreCheck && ( c . originalPosition ) < ( currentWindowScrollTop + this . state . _headerFixedPosition + index * currentHeaderHeight ) ) {
96
92
Object . assign ( currentNode . style , this . props . styles . fixedPosition )
You can’t perform that action at this time.
0 commit comments