Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE9: Object doesn't support this property or method "replaceState" #2386

Closed
clevergod opened this issue Sep 14, 2018 · 1 comment
Closed

Comments

@clevergod
Copy link

clevergod commented Sep 14, 2018

Version

3.0.1

Reproduction link

#1834

Steps to reproduce

IE9 throw the following error: Object doesn't support this property or method "replaceState"
I set the options: fallback: false
I saw a similar issue:#1834
Why not do the same treatment here?:

vue-router/dist/vue-router.js

Lines 2149 to 2153 in 8dadf97

var expectScroll = router.options.scrollBehavior;
if (expectScroll) {
setupScroll();
}

What is expected?

In addition to the judgment support supportPushState processing:

vue-router/dist/vue-router.js

Lines 2149 to 2153 in 8dadf97

var expectScroll = router.options.scrollBehavior;
if (expectScroll) {
setupScroll();
}

What is actually happening?

IE9 throw the following error: Object doesn't support this property or method "replaceState"

@JounQin
Copy link
Contributor

JounQin commented Sep 14, 2018

It seems that it has been fixed but not published to npm yet.

@posva posva closed this as completed Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants