react-component / time-picker

React TimePicker
http://react-component.github.io/time-picker/
MIT License
478 stars 201 forks source link

Timepicker popup stays fixed if used in Modal #243

Open mujtabaraza opened 1 year ago

mujtabaraza commented 1 year ago

If the timepicker is used in a modal and we scroll the modal it doesn't move with the scroll instead just holds the absolute position on page.

https://user-images.githubusercontent.com/62982499/231358851-7c050908-2876-4eb7-8014-f80d91aea659.mov

mechamobau commented 1 year ago

I'm getting the same problem, any updates in here?

ardibegolli commented 3 months ago

This solution worked for me: https://github.com/react-component/time-picker/issues/64#issuecomment-343506191 Im using an old version of the package 3.7.3 It does throw a typescript error though, bc getPopupContainer is missing from TimePickerProps