visma-meglerfront / sweet-modal-vue

The sweetest library to happen to modals.
Other
757 stars 85 forks source link

Bug when using Sweetmodal with Vue Router #84

Open bryceremick opened 5 years ago

bryceremick commented 5 years ago

If you push route X to Vue Router while a Sweetmodal is open, the scrolling on the route X will not work. You have to refresh the page to regain control of scrolling. This can be fixed by closing the Sweetmodal with the .close() method before pushing the route, but that seems like a waste of time.

Vue Version: 3.3 Sweetmodal Version: 2.0