Unverified Commit e79c4223 authored by Artem Shmanovsky's avatar Artem Shmanovsky Committed by GitHub
Browse files

Passing event to onClose prop (#5120)

parent ba788e73
......@@ -37,9 +37,9 @@ const ToastHeader = React.forwardRef(
const context = useContext(ToastContext);
const handleClick = useEventCallback(() => {
const handleClick = useEventCallback((e) => {
if (context) {
context.onClose();
context.onClose(e);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment