Skip to content

Commit

Permalink
fix(reactstrap#2593): fix key prop waring for dropdown (reactstrap#2594)
Browse files Browse the repository at this point in the history
fix key prop warning for dropdown when used within an  InputGroup
  • Loading branch information
illiteratewriter committed Aug 17, 2022
1 parent 5359bc5 commit 69526c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class Dropdown extends React.Component {
return (
<DropdownContext.Provider value={this.getContextValue()}>
<Manager>
{this.props.children.map((child) =>
{React.Children.map(this.props.children, (child) =>
React.cloneElement(child, { onKeyDown: this.handleKeyDown }),
)}
</Manager>
Expand Down

0 comments on commit 69526c1

Please sign in to comment.