ipatate / react-router-scroll-memory

Home Page:https://react-router-scroll-memory.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Particitial Component Support

danialdezfouli opened this issue · comments

I don't want to use it globally.

It's not working

<>
<ScrollMemory elementID='screen' location={location} />
<div id='screen'>
...
</div>
</>

hi, i don't understand your problem.

commented

Same problem here, there is not documentations for the use of elementID and location.
I've tried to add an elementID but it's not working at all.

<ScrollMemory elementID='list' />
<div id='list'>
body {
    overflow: hidden;
}

#list {
    overflow: scroll;
}

Hello, the elementID it's for if you use your app inside div or another element. The system keep th scroll of element instead body page. elementID is the ID of wrapper app.