While working on a Vuejs project, I encountered an issue when trying to change the page of my PWA using this.$router.push();
. It seems to work fine everywhere else except when doing it from a modal within a component. The pushed page loads but scrolling is disabled.
Interestingly, reloading the page unlocks scrolling, and navigating to the same page from elsewhere works as expected. I have tried hiding the modal before calling push
from within the modal itself, but it had no effect. I also attempted to call push
after closing the modal from the main page containing the modal-component, with no success.
I have searched extensively for a solution and am hoping that someone has faced a similar problem and found a workaround.