Skip to content

Commit

Permalink
fix(Dropdown): pass onClick to any dropdown item if present (patternf…
Browse files Browse the repository at this point in the history
…ly#1203)

previous was only done for button type
  • Loading branch information
kmcfaul authored and dlabaj committed Jan 16, 2019
1 parent 0996cfd commit f4a92ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class DropdownItem extends React.Component {
onKeyDown={this.onKeyDown}
onClick={event => {
if (!isDisabled) {
if (Component === 'button') onClick && onClick(event);
onClick && onClick(event);
onSelect && onSelect(event);
}
}}
Expand Down

0 comments on commit f4a92ee

Please sign in to comment.