diff --git a/src/renderers/Action.tsx b/src/renderers/Action.tsx index 09d69456..bc9a3a12 100644 --- a/src/renderers/Action.tsx +++ b/src/renderers/Action.tsx @@ -53,7 +53,7 @@ export interface ActionProps { level?: 'info' | 'success' | 'warning' | 'danger' | 'link'; onAction?: (e: React.MouseEvent | void | null, action: object) => void; isCurrentUrl?: (link: string) => boolean; - onClick?: (e: React.MouseEvent) => void; + onClick?: (e: React.MouseEvent, props:any) => void; primary?: boolean; activeClassName: string; componentClass: React.ReactType; @@ -88,7 +88,7 @@ export class Action extends React.Component { handleAction(e: React.MouseEvent) { const {onAction, onClick, disabled} = this.props; - onClick && onClick(e); + onClick && onClick(e, this.props); if (disabled || e.isDefaultPrevented() || !onAction) { return;