Closed guoyunhe closed 2 years ago
element.parentElement will return null when no parent, not undefined.
it will throw error when user set scrollToElement and the webpage doesn't have any overflow containers.
element.parentElement will return null when no parent, not undefined.
it will throw error when user set scrollToElement and the webpage doesn't have any overflow containers.