antd Select DatePicker 下拉框及时间选择框 跟随滚动条滚动

<DatePicker getCalendarContainer={
     triggerNode => triggerNode.parentNode}/>

<Select getCalendarContainer={
     triggerNode => triggerNode.parentNode}></Select>

.scrollParentRef

triggerNode => triggerNode.parentNode 替换成 () => this.scrollParentRef

你可能感兴趣的:(antd,react,react,html)