saberland/saber

Check if push or replace in scrollBehavior #269

MarchWorks posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

Feature request

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

What problem does this feature solve?

The ability to customize the scrollBehavior in case of replacing the hash (scrolling while changing the hash with this.$router.replace)

There is an issue for something like this in the official vue-router repo but it's taking eternity

What does the proposed API look like?

scrollBehavior(to, from, savedPosition, isPush)

How should this be implemented in your opinion?

N/A

Are you willing to work on this yourself?

Yes


Closing this because it doesn't seems to be necessary

posted by MarchWorks over 5 years ago

Fund this Issue

$0.00
Funded

Pull requests