Error on using into components.
zuxriddinkamalov opened this issue · comments
Zuxriddin commented
I'm using element-ui dialog. Into my dialog I defined croppie, but vue js can't see ref of croppie.
`
`Joff Tiquez commented
It's because the component is not yet loaded inside the dialog component. If your dialog has a on-open event, add the vue-croppie component after that event.
Zuxriddin commented
I resolved this problem with nextTick. On open dialog we can add this code:
this.$nextTick(function () {
self.$refs.croppieRef.bind({
url: base_url + self.logo,
})
})
Joff Tiquez commented
@zuxriddinkamalov nice!