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

Animation stops halfway through when closing the menu and modifying vuex store in the on-click method #53

Open
codemeier opened this issue Apr 4, 2019 · 0 comments

Comments

@codemeier
Copy link

In my app I have a PushRotate menu on the right-hand side. One of the links has an additional click.native callback attached:

  <router-link to="/login" @click.native="logout()">
    <span>Logout</span>
  </router-link>

In the callback handler I call a vuex mutation:

  methods: {
    logout() {
      this.$store.commit("logout");
    },
  },

which in turn looks like this:

    logout(state) {
      state.sessionId = "";
    },

Now when I hit the Logout link in the menu, the menu closes but the animation to revert the page to its normal state (not pushed and rotated) seems to stop halfway through, leaving the page looking a little awkward.

When I comment out the line

// state.sessionId = "";

everything works fine.

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

1 participant