0๐
โ
I would expect it to work in mounted
, are you doing your modifications on this.$el....
or something else?
Note the caveat in the docs, https://v2.vuejs.org/v2/api/#mounted
Note that mounted does not guarantee that all child components have
also been mounted. If you want to wait until the entire view has been
rendered, you can use vm.$nextTick inside of mounted:
Do you have child components? Perhaps you need to bundle it:
mounted(){
this.$nextTick(() => {
this.$el....;
}
}
Source:stackexchange.com