Skip to content

Commit

Permalink
Merge pull request #967 from mittwald/fix/on-close-of-notifications
Browse files Browse the repository at this point in the history
fix(Notification): onClose handler in ControlledNotification
  • Loading branch information
TimAufdemKampe authored Nov 11, 2024
2 parents 173e005 + 29bc5f0 commit 8dde88a
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 8dde88a

Please sign in to comment.