trigger
trigger copied to clipboard
alwaysByViewport for @rc-component/trigger
Any way to force the popup always keep in view for @rc-component/trigger
for now?
- @rc-component/trigger: 1.14.1
Unlike rc-trigger
, @rc-component/trigger
always try to stick to the target. Is there any option to force it in viewport? I tried htmlRegion
options but it doesn't work. This will be very helpful when the content of the popup is larger than the available space.
Thank you~
Reproduction
https://codesandbox.io/s/antd-v5-dropdown-overflow-hz2ymc
DatePicker do not config the shiftY
, you can ref https://github.com/ant-design/ant-design/blob/master/components/select/useBuiltinPlacements.tsx
could you elaborate? or could you give some hint on how to make a <Dropdown />
always stay in view port?