Skip to content

Vue Router (router-link) does not update properly if using tag #810

Closed
@lukepolo

Description

@lukepolo

Vue.js version

vue@^2.0.1:
version "2.0.3"

vuex@^2.0.0:
version "2.0.0"

vue-router@^2.0.0:
version "2.0.1"

Reproduction Link

https://jsfiddle.net/Linusborg/b40xckws/2/

Steps to reproduce

Hover over link : you should see

https://fiddle.jshell.net/site/1

click on button

you will see the that the site id has changed but the link does not

What is Expected?

You should click the button and see

https://fiddle.jshell.net/site/4

What is actually happening?

You see https://fiddle.jshell.net/site/1

how to fix

Remove tag onrouter-link

Activity

LinusBorg

LinusBorg commented on Oct 20, 2016

@LinusBorg
Member

Seems to be a bug.

And maybe we even have to move this back to the Vue repo, sorry ^^

Because the link-component itself works as it should, the new href is being added to the vnode of the anchro tag. It's just that the DOM doesn't get updated as it should (whcih would be Vue's job again).

But we will have to take a closer look to tell exactly.

lukepolo

lukepolo commented on Oct 20, 2016

@lukepolo
Author

feel free to re-open the other one ,ill edit so it reeds the same as before~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @LinusBorg@lukepolo

        Issue actions

          Vue Router (router-link) does not update properly if using tag · Issue #810 · vuejs/vue-router