From 9f1ddbd8b0a3420eee8e2584bd94f6949cb1fdb4 Mon Sep 17 00:00:00 2001 From: melloware Date: Sat, 2 Dec 2023 08:16:59 -0500 Subject: [PATCH] Fix #5485: Messages restore close animation --- components/lib/messages/Messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/messages/Messages.js b/components/lib/messages/Messages.js index 833a7cc449..7cc046c078 100644 --- a/components/lib/messages/Messages.js +++ b/components/lib/messages/Messages.js @@ -3,7 +3,7 @@ import { TransitionGroup } from 'react-transition-group'; import { PrimeReactContext } from '../api/Api'; import { useHandleStyle } from '../componentbase/ComponentBase'; import { CSSTransition } from '../csstransition/CSSTransition'; -import { ObjectUtils, classNames, mergeProps } from '../utils/Utils'; +import { ObjectUtils, mergeProps } from '../utils/Utils'; import { MessagesBase } from './MessagesBase'; import { UIMessage } from './UIMessage'; @@ -103,7 +103,7 @@ export const Messages = React.memo( const transitionProps = mergeProps( { - classNames: classNames('p-message', ptCallbacks.cx('transition')), + classNames: ptCallbacks.cx('uimessage.transition'), unmountOnExit: true, timeout: { enter: 300, exit: 300 }, options: props.transitionOptions