[V1] mainView.router.refreshPage() causing Android App to Crash

I have a Phonegap/Framework7 V1 hybrid app with a form submit button. On submit, I want the page to refresh with the entered value displayed on the screen. Whenever this particular page is initiated, hyperlink divs are created on the fly based on these values saved in local storage. I’m using setTimeout(mainView.router.refreshPage(),10); to reload the page after new values are added. This works perfectly in iOS, but in Android, the app crashes and I get this error: WebView.destroy() called while WebView is still attached to window. Thoughts?

I just figured out that I needed event.preventDefault(); after the refresh view