2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +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:
Oliver 2024-09-04 20:16:23 +10:00 committed by GitHub
parent 029df83878
commit 90a6ae3426
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,8 +41,8 @@ export function ActionButton(props: ActionButtonProps) {
aria-label={`action-button-${identifierString(
props.tooltip ?? props.text ?? ''
)}`}
onClick={() => {
props.onClick();
onClick={(event: any) => {
props.onClick(event);
}}
variant={props.variant ?? 'transparent'}
>