Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 977c409688 |
@@ -175,8 +175,10 @@ imageClassName = "",
|
|||||||
|
|
||||||
const enhancedButtons = buttons?.map((button) => ({
|
const enhancedButtons = buttons?.map((button) => ({
|
||||||
...button,
|
...button,
|
||||||
onClick: (e: React.MouseEvent<HTMLButtonElement>) => {
|
onClick: (e: React.MouseEvent<HTMLButtonElement> | null) => {
|
||||||
handleButtonClick(e, button.onClick as (() => void) | undefined);
|
if (e && e.currentTarget) {
|
||||||
|
handleButtonClick(e, button.onClick as (() => void) | undefined);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user