IonDateTime causing modal to scroll

Hello,
I don’t know if this is a bug or if I am doing something wrong, but when I have a form inside a modal and this form has an instance of , as I click on any button (inside the calendar grid) for the input, the page toggles between scrolling all the way up to top or to bottom. Putting the IonDateTime outside the does not fix this issue.

Does anyone have any idea?
Thank you

Gonna need some code, preferably a minimal reproduction.

So it was no bug with IonDateTime but rather with createPortal from React. It causes unpredictable behavior because it mixes basic JS functionality with react-DOM, sharing events between them.

1 Like