I am using suneditor-react
npm package in a nextjs application. The container where i am using it is scrollable. It’s working fine but when i hit enter after finishing a line for new line, the container is scrolling automatically to top position.
The editor is not loosing focus but it’s getting out of view when the container scroller is in it’s top position. Looking for a solution.
I have tried to solve it by providing onKeyDown callback and intercepting the keyboard enter event but it’s still not working.