Describe the issue. What is the expected and unexpected behavior?
Looking at IAction interface for <Table> actions prop it requires onClick function prop to be provided.
|
export interface IAction extends Omit<DropdownItemProps, 'title' | 'onClick'> { |
|
isSeparator?: boolean; |
|
itemKey?: string; |
|
title?: string | React.ReactNode; |
|
onClick: (event: React.MouseEvent, rowIndex: number, rowData: IRowData, extraData: IExtraData) => void; |
|
} |
This prevents the ability to have link actions, such as the example provided in
https://www.patternfly.org/v4/documentation/react/components/table#simple-actions
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Bug
What is your product and what release version are you targeting?
Reactions are currently unavailable
Describe the issue. What is the expected and unexpected behavior?
Looking at IAction interface for <Table> actions prop it requires onClick function prop to be provided.
patternfly-react/packages/patternfly-4/react-table/src/components/Table/Table.tsx
Lines 110 to 115 in c0a63bc
This prevents the ability to have link actions, such as the example provided in
https://www.patternfly.org/v4/documentation/react/components/table#simple-actions
Please provide the steps to reproduce. Feel free to link CodeSandbox or another tool.
Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Bug
What is your product and what release version are you targeting?