Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollIntoViewWithOptions should have optional fields #11

Open
joprice opened this issue Oct 1, 2023 · 0 comments
Open

scrollIntoViewWithOptions should have optional fields #11

joprice opened this issue Oct 1, 2023 · 0 comments

Comments

@joprice
Copy link

joprice commented Oct 1, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant