Open nanami-yu opened 3 years ago
Same problems here.
template
properties are not properly coming back when it changed with keep-alive.
@nanami-yu Try to set options when the component is activated. It will fix the problem temporary
activated() {
this.$refs.calendar.invoke('setOptions', { template: this.templates })
...
},
@3rdlab
It seems the right behavior for components wrapped in the keep-alive
component.
Could you post any sandboxes reproducing the problem made with something like codesandbox, glitch?
@adhrinae
Could you check this code?
https://codesandbox.io/s/objective-fast-6y9po
I fetched data on activated
event because of keep-alive
set up.
I think refetching data on activated event might cause the problem
@3rdlab I'm sorry but I'm not sure the root cause of the problem.
Removing the keep-alive
component from the calendar or your workaround might be helpful. I'll look into it deeper later.
Version
toast-ui/vue-calendar: 1.1.1
Test Environment
Chrome,Window10, vue-element-admin
Current Behavior
Expected Behavior
show right value