@@ -15,7 +15,7 @@ import {
1515 useUpdatePosition ,
1616} from '../../hooks' ;
1717import { CloseCircleFilled , SwapRightOutlined } from '../../icons' ;
18- import { getClassName , getNoTransformSize , getVerticalSidePosition } from '../../utils' ;
18+ import { checkNodeExist , getClassName , getNoTransformSize , getVerticalSidePosition } from '../../utils' ;
1919import { TTANSITION_DURING_POPUP } from '../../utils/global' ;
2020import { DBaseDesign } from '../_base-design' ;
2121import { DBaseInput } from '../_base-input' ;
@@ -302,7 +302,7 @@ function DateInput(props: DDateInputProps, ref: React.ForwardedRef<DDateInputRef
302302 < CloseCircleFilled />
303303 </ button >
304304 ) }
305- { dSuffix && (
305+ { checkNodeExist ( dSuffix ) && (
306306 < div className = { `${ prefix } __icon` } style = { { opacity : clearable ? 0 : 1 } } >
307307 { dSuffix }
308308 </ div >
@@ -331,7 +331,7 @@ function DateInput(props: DDateInputProps, ref: React.ForwardedRef<DDateInputRef
331331
332332 case 'entering' :
333333 transitionStyle = {
334- transition : ` transform ${ TTANSITION_DURING_POPUP } ms ease-out, opacity ${ TTANSITION_DURING_POPUP } ms ease-out`,
334+ transition : [ ' transform' , 'opacity' ] . map ( ( attr ) => ` ${ attr } ${ TTANSITION_DURING_POPUP } ms ease-out`) . join ( ', ' ) ,
335335 transformOrigin,
336336 } ;
337337 break ;
@@ -340,7 +340,7 @@ function DateInput(props: DDateInputProps, ref: React.ForwardedRef<DDateInputRef
340340 transitionStyle = {
341341 transform : 'scaleY(0.7)' ,
342342 opacity : 0 ,
343- transition : ` transform ${ TTANSITION_DURING_POPUP } ms ease-in, opacity ${ TTANSITION_DURING_POPUP } ms ease-in`,
343+ transition : [ ' transform' , 'opacity' ] . map ( ( attr ) => ` ${ attr } ${ TTANSITION_DURING_POPUP } ms ease-in`) . join ( ', ' ) ,
344344 transformOrigin,
345345 } ;
346346 break ;
0 commit comments