Skip to content

scrollIntoViewWithOptions should have optional fields #11

@joprice

Description

@joprice

When trying to apply scrollIntoViewWithOptions with just the behavior field, I'm required to provide block. The mdn docs show these as optional (along with the missing inline parameter). Can the binding be defined to allow providing a subset of the fields?

160 |                              "behavior": "smooth",
161 |                            }..
Error: This expression has type < behavior : string >
      but an expression was expected of type
        < behavior : string; block : string >
      The first object type has no method block

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions