React TimePicker not scrolling on Modal

739 Views Asked by At

https://codesandbox.io/s/6lol2kz3v3

When the modal is scrolled, the timepicker just stays on the same position instead of getting scrolled together with the other components.

What would be the correct way to fix this?

1

There are 1 best solutions below

0
On BEST ANSWER

Solved with adding the prop getPopupContainer={triggerNode => triggerNode.parentNode} to the component.