-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Type definition for BreadcrumbItem doesn't seem to match implementation #5249
Comments
Hmm, it looks like we should probably doubly-template this and do something like |
I would love to - but I'm afraid ... at least currently I don't feel as deep into this. I don't really get, where I should make the adjustment you suggested 😊 And ... I just cloned the repo (for starters) and already fail to run the tests ☹ |
Awesome! So ... since this is in the master-branch, this is however not (yet) part of the official build, right? As far as I can tell version 1.1.1 does not include this commit. |
that's right, it will get into the next release (soon) |
BTW: the 1.2.0 version did solve this issue 😍 |
Describe the bug
While the implementation of the
linkProps
is being describes as "Additional props passed as-is to the underlying link for non-active items" and is declared asPropTypes.object
, the types are declaringReact.LinkHTMLAttributes<HTMLLinkElement>
. This limits thelink
as being only aHTMLLinkElement
.Expected behavior
If I pass
linkAs={Link}
I would like to specifylinkProps={{to:"/"}}
in order to passto:"/"
to theLink
compontent ofreact-router-dom
.Environment
Additional context
When I change
to
this seems more like the documentation.
The text was updated successfully, but these errors were encountered: