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 (
|
return (
|
||||||
<span {...restProps} className={badgeClassName}>
|
<span {...restProps} className={badgeClassName}>
|
||||||
{children}
|
{children}
|
||||||
<CSSMotion visible={!isHidden} motionName={`${prefixCls}-zoom`} motionAppear={false}>
|
<CSSMotion
|
||||||
|
visible={!isHidden}
|
||||||
|
motionName={`${prefixCls}-zoom`}
|
||||||
|
motionAppear={false}
|
||||||
|
motionDeadline={1000}
|
||||||
|
>
|
||||||
{({ className: motionClassName }) => {
|
{({ className: motionClassName }) => {
|
||||||
const scrollNumberPrefixCls = getPrefixCls(
|
const scrollNumberPrefixCls = getPrefixCls(
|
||||||
'scroll-number',
|
'scroll-number',
|
||||||
|
Loading…
Reference in New Issue
Block a user