Skip to content

undefined is not an object (evaluating 'e.clientHeight') #180

@m-nathani

Description

@m-nathani

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions