mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
Fix for image click events (#8071)
- Click event was not being passed correctly - Closes https://github.com/inventree/InvenTree/issues/8068
This commit is contained in:
parent
029df83878
commit
90a6ae3426
@ -41,8 +41,8 @@ export function ActionButton(props: ActionButtonProps) {
|
|||||||
aria-label={`action-button-${identifierString(
|
aria-label={`action-button-${identifierString(
|
||||||
props.tooltip ?? props.text ?? ''
|
props.tooltip ?? props.text ?? ''
|
||||||
)}`}
|
)}`}
|
||||||
onClick={() => {
|
onClick={(event: any) => {
|
||||||
props.onClick();
|
props.onClick(event);
|
||||||
}}
|
}}
|
||||||
variant={props.variant ?? 'transparent'}
|
variant={props.variant ?? 'transparent'}
|
||||||
>
|
>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user