Version:
"smoothscroll-polyfill": "^0.4.4",
Using the polyfill on safari browser :
browser: [Safari 14.1]
os.name: [Mac OS X]
element.scrollIntoView({
behavior: 'smooth',
block: 'start',
inline: 'nearest',
});
giving me an error as TypeError
undefined is not an object (evaluating 'e.clientHeight')
Expected:
the above method is equivalent to below as mentioned in MDN docs
element.scrollIntoView(true)
Version:
"smoothscroll-polyfill": "^0.4.4",Using the polyfill on safari browser :
browser: [Safari 14.1]os.name: [Mac OS X]giving me an error as TypeError
Expected:
the above method is equivalent to below as mentioned in MDN docs