Skip to content

Commit

Permalink
Merge pull request #2588 from afilp/fix-menutap-onclick-event
Browse files Browse the repository at this point in the history
Fix 'handleMenuTap' (onClick) to also pass the event to the 'onClick' prop
  • Loading branch information
Gildas Garcia committed Nov 29, 2018
2 parents 1f47c28 + 4743fca commit 42590a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/layout/MenuItemLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export class MenuItemLink extends Component {
to: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
};

handleMenuTap = () => {
this.props.onClick && this.props.onClick();
handleMenuTap = (e) => {
this.props.onClick && this.props.onClick(e);
};

render() {
Expand Down

0 comments on commit 42590a9

Please sign in to comment.