zhanziyang/vue-croppa

auto-sizing doesn't work with v-show

Closed this issue · 0 comments

@zhanziyang
Hello, thanks for the great package. The chosen image will not be drawn in the canvas if using props auto-sizing enabled together with v-show.

<croppa v-model="croppa" v-show="croppa.imageSet"
          auto-sizing
          disable-click-to-choose
          placeholder="click button on the right :)"
          :placeholder-font-size="14">
</croppa>

<button v-if="!croppa.imageSet" @click="croppa.chooseFile()">CHOOSE FILE...</button>

Here is the codepen link to reproduce the issue:
https://codepen.io/josteph22/pen/yReMoy

Package version: vue-croppa: ^1.3.8

Many thanks!