Disable scroll to top after form submit

Hi,

I have a Stimulus controller on a form, on connect() I check if a scrolltoValue is not empty, if it is not I would like to scroll to this value element. If on connect() I call this.scrollToTarget() it just scrolls to the top, if I do setTimeout(() => this.scrollToTarget(), 0); it scrolls to the target but it starts scrolling to the top, so I can see 2 scrolls, the starting scroll to the top and then the scroll to the element.

Is there a way to disable scroll to top after form submit?

Thanks.