在组件中添加“getPopupContainer={triggerNode =>triggerNode.parentNode}”属性即可。
<Select getPopupContainer={triggerNode => triggerNode.parentNode}
// some code
</Select>
<DatePicker getCalendarContainer={triggerNode => triggerNode.parentNode} />
在组件中添加“getPopupContainer={triggerNode =>triggerNode.parentNode}”属性即可。
<Select getPopupContainer={triggerNode => triggerNode.parentNode}
// some code
</Select>
<DatePicker getCalendarContainer={triggerNode => triggerNode.parentNode} />