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

The class attribute of the RouterLink component is not supported in the TSX file, but can still be applied to DOM elements #435

Closed
MaxPeak opened this issue Aug 23, 2020 · 0 comments
Assignees
Labels
typescript Problem related to TS typings

Comments

@MaxPeak
Copy link

MaxPeak commented Aug 23, 2020

Version

4.0.0-beta.6

Reproduction link

https://codesandbox.io/s/mystifying-cloud-ke4tx?file=/src/index.tsx

Steps to reproduce

<RouterLink class={sidebar_item} active-class="active" to={/link}> link

What is expected?

The class attribute can be used normally without prompting me that the attribute "class" does not exist on the type "intrinsicAttributes&Vnode& RouterLinkProps".

What is actually happening?

The RouterLinkProps attribute definition does not include the class option

@posva posva added contribution welcome The team would welcome a contribution from the community for this issue typescript Problem related to TS typings and removed contribution welcome The team would welcome a contribution from the community for this issue labels Aug 23, 2020
@posva posva self-assigned this Aug 23, 2020
@posva posva closed this as completed in 06f3f8f Aug 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Problem related to TS typings
Projects
None yet
Development

No branches or pull requests

2 participants