vue-croppa icon indicating copy to clipboard operation
vue-croppa copied to clipboard

_vm.croppa.hasImage is not a function

Open pirmax opened this issue 7 years ago • 2 comments

I've a problem with hasImage() method...

<v-btn color="primary" @click.native="step = 3" :disabled="croppa.hasImage()">Continue</v-btn>

I get this error:

_vm.croppa.hasImage is not a function

pirmax avatar Jun 07 '18 14:06 pirmax

I have the same error. Did you find a solution @pirmax?

Edit: seems like you can only use it inside a method. For example, in my save() method, i have something like:

if (this.croppa.hasImage()) { // do something }

ricardovegamx avatar Jun 22 '18 21:06 ricardovegamx

Use croppa.imageSet check instead of calling hasImage() method.

josteph avatar Oct 03 '18 03:10 josteph