lekhang2512 / vue-upload-multiple-image

A simple upload multiple image component for Vuejs
132 stars 50 forks source link

Cannot read property 'target' of undefined #37

Open caglarsarikaya opened 4 years ago

caglarsarikaya commented 4 years ago

when i delete or edit some picture it gives this error Error in v-on handler: "TypeError: event.target.className.indexOf is not a function"

i am using vue.js i didnt find where throwing this error. could you please help me

caglarsarikaya commented 4 years ago

{var t=this;this.$emit("before-remove",e,function(){1===t.images[e].default&&(t.images[0].default=1),t.images.splice(e,1),t.currentIndexImage=0,t.images.length&&(t.images[0].highlight=1)},this.images)}