Skip to content

The position displayed by popover flashes every time it is clicked #6281

@yiranmiao

Description

@yiranmiao
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.7.7

Environment

Vue 2.6

Reproduction link

https://1x.antdv.com/components/popover-cn/

Steps to reproduce

<a-popover
v-model:visible="popoverVisible"
arrow-point-at-center
trigger="click"

What is expected?

popover 位置计算有问题,每次点击后的位置会发生变化,会在两个位置之间反复横跳

What is actually happening?

popover 位置计算有问题,每次点击后的位置会发生变化,会在两个位置之间反复横跳


提问之前查阅了issues,有类似问题如下:
#3147
为什么要重新提问:
这里的解决办法是设置transitionName="",确实可以解决闪跳的问题,但是同时也使popover失去了展现时的动画效果。目前看2和3版本的ant deisgn已经解决了这个问题,1.7.8是否还会有后续更新解决这个bug?感谢查看。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions