Skip to content

Commit 3ff5d31

Browse files
committed
🐛 Item.onClickに渡されるeventの型が違っていた
1 parent 9874698 commit 3ff5d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pageMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type Item = {
1717
/** the URL of an image which views on the left of the title */
1818
image?: string;
1919
/** the event listener which is executed when the menu item is clicked */
20-
onClick: (event: React.MouseEvent<HTMLImageElement>) => void;
20+
onClick: (event: React.MouseEvent<HTMLAnchorElement>) => void;
2121
};
2222

2323
export declare class PageMenu extends BaseStore {

0 commit comments

Comments
 (0)