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

fix(ListGroupItem): prevent a div with a href #6462

Merged
merged 5 commits into from Oct 12, 2022

Conversation

lcheunglci
Copy link
Contributor

While adding the docs in #6461 , I realize that if action=false and href is set, a <div href="..."> is generated. I think the href attribute should only be for the <a> tag or custom component if the as is specified.

@kyletsang
Copy link
Member

Thinking on this... I think we should show a warning instead because the combination of action=false with a href is invalid. Use the warning function for this. There are examples in the codebase on how to do it.

@kyletsang kyletsang merged commit c4b15a3 into react-bootstrap:master Oct 12, 2022
@kyletsang
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants