samjonesigd / vue-image-zoomer

Image zoom component for Vue.js
https://samueljon.es/vue-image-zoomer
MIT License
108 stars 10 forks source link

property 'getBoundingClientRect' of undefined" #10

Closed valdinei closed 3 years ago

valdinei commented 3 years ago

The component doesn't seem to find the reference to to use the "getBoundingClientRect" function

[Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'getBoundingClientRect' of undefined"

found in

---> <ImageZoom>
       <ImageViewer> at src/components/panel/conversation/messages/messages/ImageViewer.vue

image

samjonesigd commented 3 years ago

@valdinei hey, are you on the latest version? 1.2.1?

Can you show my your component so I can try replicate?