mauricevancooten / react-anchor-link-smooth-scroll

React component for anchor links using the smooth scroll polyfill.
243 stars 31 forks source link

Not working #18

Closed MBach closed 5 years ago

MBach commented 5 years ago

Hi,

This module doesn't seem to work with latest React release.

https://codesandbox.io/s/00y5y25z6l

mauricevancooten commented 5 years ago

Thanks for letting me know.

mauricevancooten commented 5 years ago

Tested with React v16.7.0 and appears to be working fine.

MBach commented 5 years ago

Are you sure @mauricevancooten? Did I do something wrong on my example on codesandbox?

Pustur commented 5 years ago

@MBach You might have figured it out by yourself in the meantime, but for posterity I'm going to let you know that there's nothing wrong with your codesandbox.

The problem seems to be that the browser window used by codesandbox doesn't support this type of scrolling. In fact if you take the url (https://00y5y25z6l.codesandbox.io) and open it in a browser it works fine.