Skip to content

Commit

Permalink
fix(reactstrap#2758): pass innerRef to tag
Browse files Browse the repository at this point in the history
  • Loading branch information
illiteratewriter committed Aug 28, 2023
1 parent 61f2453 commit d13f251
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DropdownToggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ class DropdownToggle extends React.Component {
{...props}
className={classes}
onClick={this.onClick}
ref={this.context.onToggleRef}
{...{
[typeof Tag === 'string' ? 'ref' : 'innerRef']:
this.context.onToggleRef,
}}
aria-expanded={this.context.isOpen}
aria-haspopup={this.getRole()}
children={children}
Expand Down

0 comments on commit d13f251

Please sign in to comment.