mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-08 01:53:34 +08:00
fix: fix badge animation end not trigger when parent is display:none (#33083)
Co-authored-by: songlin.chen <songlin.chen@leyantech.com>
This commit is contained in:
parent
97fd6d5b03
commit
d4b4edf8ef
@ -175,7 +175,12 @@ const Badge: CompoundedComponent = ({
|
||||
return (
|
||||
<span {...restProps} className={badgeClassName}>
|
||||
{children}
|
||||
<CSSMotion visible={!isHidden} motionName={`${prefixCls}-zoom`} motionAppear={false}>
|
||||
<CSSMotion
|
||||
visible={!isHidden}
|
||||
motionName={`${prefixCls}-zoom`}
|
||||
motionAppear={false}
|
||||
motionDeadline={1000}
|
||||
>
|
||||
{({ className: motionClassName }) => {
|
||||
const scrollNumberPrefixCls = getPrefixCls(
|
||||
'scroll-number',
|
||||
|
Loading…
Reference in New Issue
Block a user