I'm using a form component within my app.
Just want some simple functionality where it automatically scrolls to the top of the page on form submit (the submit button is pressed and successful). The app functionality is for DB updating in our work place so the user will submit a form, then another etc etc.
Currently I was running this script on press of submit button:
window.scrollTo({ top: 0, behavior: 'smooth' });
But doesn't seem to work, sure there's an easy solution.
Thanks!
