Skip to content

Commit

Permalink
fix(Dropdown): add onclick fix to custom items (patternfly#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmcfaul authored and dlabaj committed Jan 17, 2019
1 parent ec1bfbf commit bbdf4cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,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 bbdf4cc

Please sign in to comment.