You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The polyfill for scrollIntoView doesn't work if you want to use it on an SVGElement (g, circle polygon, etc.) on Safari.
On Safari SVGElement does not inherit from HtmlElement || Element.
To make it work,
after:
import smoothscroll from 'smoothscroll-polyfill' smoothscroll.polyfill()
add:
The polyfill for scrollIntoView doesn't work if you want to use it on an SVGElement (g, circle polygon, etc.) on Safari.
On Safari SVGElement does not inherit from HtmlElement || Element.
To make it work,
after:
import smoothscroll from 'smoothscroll-polyfill' smoothscroll.polyfill()
add:
window.SVGElement.prototype.scrollIntoView = (window.HTMLElement || window.Element).prototype.scrollIntoView
The text was updated successfully, but these errors were encountered: