@douyinfe/semi-ui 2.5.0 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tooltip/index.tsx CHANGED
@@ -513,7 +513,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
513
513
  <div
514
514
  className={classNames(className, animateCls)}
515
515
  style={{
516
- // visibility: 'visible',
516
+ visibility: 'visible',
517
517
  ...animateStyle,
518
518
  transformOrigin,
519
519
  ...style,
@@ -532,7 +532,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
532
532
  }
533
533
  </TooltipTransition>
534
534
  ) : (
535
- <div className={className} {...portalEventSet} x-placement={placement} style={style}>
535
+ <div className={className} {...portalEventSet} x-placement={placement} style={{ visibility: motion ? undefined : 'visible', ...style }}>
536
536
  {content}
537
537
  {icon}
538
538
  </div>