Skip to content

useNotifications notifications do not transition on close or autoHide #4959

@dchae

Description

@dchae

Steps to reproduce

Steps:

  1. Open this link to live example: https://codesandbox.io/p/sandbox/blissful-wave-wqccx9
  2. Click on the buttons.

Also observable on the main docs, though it is less noticeable with the default grow transition: https://mui.com/toolpad/core/react-use-notifications/#api

Current behavior

Transition is only applied on mount. On unmount, the element just disappears.

Expected behavior

Notification should use the same transition to unmount as it does to mount.

Context

No response

Your environment

  • Skipping this since this is extremely easy to reproduce.

Search keywords: Snackbar, Notification, useNotification, transition

Metadata

Metadata

Assignees

Labels

design: uxRelated to End-users' experience.type: bugIt doesn't behave as expected.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions