Closed ShivanshSharma1 closed 3 years ago
I don't understand what you need. Please explain a little more
When I click on a ScrollChor element, it takes me to the element with the given id but it also adds #(id) at the end of the url. Is there any way to prevent it from adding the id at the end of the url.
@ShivanshSharma1 Adding the id
at the end of the URL is done by the browser when you click on a <a>
element as is this case.
Try the simulateClick
API and the childrenless Scrollchor
as in this example: https://github.com/some-react-components/react-scrollchor/issues/17
Sorry I can't try it myself because I'm out of time.
Tell me how it went.
Maybe using disableHistory: true
is enough
It worked, Thanks. Sorry, I missed the props section in the docs
I glad it worked 👍
Is there any way to stop it from changing location(url).