Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The tip of Popover doesn't point properly to its children node (i.e. target element) #33121

Closed
1 task done
kafkahw opened this issue Dec 2, 2021 · 1 comment
Closed
1 task done

Comments

@kafkahw
Copy link

kafkahw commented Dec 2, 2021

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

Reproduction link

https://react-foycs9.stackblitz.io/

Steps to reproduce

  1. Hover over on the "hi" button

What is expected?

The tip of the Popover should point to the "hi" button.

What is actually happening?

The tip of the Popover points off of the "hi" button.

Environment Info
antd 4.17.2
React 17.0.2
System Mac OS 11.6
Browser Chrome 96.0.4664.55

Editable playground environment is here: https://stackblitz.com/edit/react-foycs9.

What I found so far is that when the target element (i.e. the children node of Popover) is close to the edge of viewport, this issue will come up.

@afc163
Copy link
Member

afc163 commented Dec 2, 2021

Try placement="rightBottom" or placement="topLeft".

Or trace #7038 (comment)

@afc163 afc163 closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants