-
Notifications
You must be signed in to change notification settings - Fork 104
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
Dropdown.Item with NavLink #144
Comments
Ah, yeah that will be a problem since the DropdownItem renders an anchor. Let me see what I can do about that, and post a PR here! |
The workaround you mentioned sounds like a viable solution to me. My suggestion would be to leave it as is and maybe have an example story about it. What do y'all think? |
Wouldn't a polymorphic prop be ideal in this case? Edit: Sorry, I just realized this has already been mentioned in #129 and #108. I believe these 3 issues are related and could be solved if such a prop would be implemented. I can take a look into this and see if I can come up with a solution. Would that be okay? @benjitrosch |
Using
NavLink
fromreact-router-dom
with<DropDown.Item>
, I would get this in the console<a> cannot appear as a descendant of <a>.
Wondering if there's a way to use
NavLink
andDropDown.Item
Workaround:
The text was updated successfully, but these errors were encountered: