-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scrollIntoView with arguments is not working #176
Comments
Same issue here, trying to get it working in React + iOS Safari, but it's leading me to believe that the polyfill just isn't loading at all, since Safari does support I've looked through #139 and tried all different combinations of importing, putting in a useEffect hook moving it to the top level index.tsx component, etc, and it just won't work if I add options. |
Well, I figured out why it wasn't working in my case. For reasons that aren't relevant here, I had this in my css: html,
body {
height: 100%;
overflow: auto;
width: 100%;
} Removing |
Removing overflow: auto from parent worked for me too. Not sure why it worked🤨 |
I have an element to center align in page respect to its parent
document.querySelector('#someid').scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' });
It works fine without this polyfill (but without behavior smooth of course), But when the polyfill is active the arguments are discarded
The text was updated successfully, but these errors were encountered: