React DatePicker Issue

Hi guys! Does anyone have any solution on this?

I’m testing an application using React DatePicker which some dates are hidden.

If I using scrollToElement the object (in red box) will be show but the page scroll bar (in yellow box) will also move hence the DatePicker object will no longer be displayed on screen. And on this application if the object is not visible on the screen then the object is not actionable.

Hope you can share your ideas to resolve this. Thank you!

Hi @kenneth.montevirgen,

Please open Chrome Dev Tools, go to Console tab and execute this command:

$0.scrollIntoView(true)