ant-design Opening dropdown in wrong direction

n3schb8v  于 22天前  发布在  其他
关注(0)|答案(4)|浏览(20)

https://codepen.io/RezDmitryDev/pen/mdZeVOp

Steps to reproduce

  1. Hover "bugged" button

What is expected?

Dropdown open from down to up (like top* placements)

What is actually happening?

Dropdown open from up to down (like bottom* placements)
| Environment | Info |
| ------------ | ------------ |
| antd | 5.19.2 |
| React | 18.2.0 |
| System | macOS 14.5 |
| Browser | Chrome 126.0.6478.127 |

It reproduced if dropdown window is so closed to right border and down of screen and dropdown can't open how usually (see notBugged case for no-bug case)

hjqgdpho

hjqgdpho1#

hey @RezDmitryDev , I would love to contribute to this issue. Could you please assign me this issue

v6ylcynt

v6ylcynt2#

Hey @ankur-kalita, are you working on this? If you have not started can I pick this up?

e4eetjau

e4eetjau3#

Yes sure @karishmagolani...go ahead

kse8i1jr

kse8i1jr4#

I need a bit help over here to understand the problem. Shouldn't the consumer use prop - "top" to have the dropdown working as expected? What exactly is the issue?

相关问题