Antd select drop-down option offset problem

as shown in the figure, in the process of using select, there is a situation where the offset of the matching drop-down option cannot be close to the input box, and the reason has not been found. Orz, has a little impact on the experience

.

clipboard.png

Mar.24,2021
Add getPopupContainer= {trigger = > trigger.parentNode} inside the
tag, and set the style of the select drop-down
.ant-select-dropdown {

position: relative;
left: 0 !important;
top:0 !important;

}

.
Menu