We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 100bc5c commit fe7e2ffCopy full SHA for fe7e2ff
src/components/message/messageUnControlled.tsx
@@ -10,8 +10,9 @@ const MessageUnControlledComponent = <V extends string | unknown>(
10
): JSX.Element => {
11
const [open, setOpen] = React.useState(defaultOpen);
12
13
- const handleCloseButton = () => {
+ const handleCloseButton: React.MouseEventHandler<HTMLButtonElement> = event => {
14
setOpen(false);
15
+ props.closeIcon?.onClick?.(event);
16
};
17
18
return (
0 commit comments