twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.87k stars 488 forks source link

scrollContainer doesn't work #264

Open liufeisprit opened 5 years ago

liufeisprit commented 5 years ago

when i need partial scroll , and i set the scrollContainer is partialScroll's dom node . like document.querySelector('....') . but is doesn't work . It only render first part .

image image

jamesrx commented 5 years ago

See #260

liufeisprit commented 5 years ago

It is I used the wraong anout scrollContainer? could i see the demo?

liplylie commented 5 years ago

you don't need to use document.querySelector in scrollContainer. Just pass the string of the className like this scrollContainer={'.listView'}

liufeisprit commented 4 years ago

you don't need to use document.querySelector in scrollContainer. Just pass the string of the className like this scrollContainer={'.listView'}

yes , i used scrollContainer={'.listView'} . But it only render first part , the next pages dosen't render real dom