Skip to content

Commit

Permalink
fix(Notification): Also call onClose handler from notification compon…
Browse files Browse the repository at this point in the history
…ent props if notification comes from an NotificationProvider
  • Loading branch information
Tim Auf dem Kampe committed Nov 11, 2024
1 parent 173e005 commit 29bc5f0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const ControlledNotification: FC<Props> = (props) => {
},
onClose: () => {
controller.remove(notification.meta.id);
notification.element.props.onClose?.();
},
onFocus: () => {
notification.meta.autoCloseTimer.pause();
Expand Down

0 comments on commit 29bc5f0

Please sign in to comment.