Typing in side bar scrolls the main content

When I’ve reached the end of screen while typing in the right side bar, every additional letter typed scrolls down the main content bar. This happens with backspace and delete as well.

Manually scrolling down on the right side bar till the line I’m typing on is no longer the last line on the screen solves the issue temporarily