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

Failed when activated for the second time in the keep-alive component #10

Closed
zsedcbm opened this issue Jan 31, 2019 · 4 comments
Closed

Comments

@zsedcbm
Copy link

zsedcbm commented Jan 31, 2019

When I wrap the div with the keep-alive component, v-resize is valid the first time it is entered. When the div re-triggers activated, v-resize is invalid.

@zsedcbm
Copy link
Author

zsedcbm commented Jan 31, 2019

@zsedcbm
Copy link
Author

zsedcbm commented Jan 31, 2019

https://codepen.io/zsedcbm/pen/RvKKLd

no nested router looks like success

@David-Desmaisons
Copy link
Owner

David-Desmaisons commented Mar 16, 2019

I found this workaround:

  activated(){
    Vueresize.inserted(this.$el, { value: this.relayout});
  },
  deactivated(){
    Vueresize.unbind(this.$el, { value: this.relayout});
  },

Not the most elegant solution, but for now no better idea

https://codepen.io/dede89/pen/JzvPZZ

@David-Desmaisons
Copy link
Owner

Corrected in version 1.2.0

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

2 participants