jofftiquez / vue-croppie

Vue wrapper for croppie

Home Page:https://jofftiquez.github.io/vue-croppie/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

enableResize seems to be always enabled

yennor opened this issue · comments

It seems to be always possible to resize the viewport. Even if I set :enableResize="false" explicitly. The viewport can still be resized.

I had the same problem, but I seemed to have solved this by setting the default value of the enableResize prop in the VueCroppieComponent.js file within the src folder of the vue-croppie module itself as follows: -
enableResize: { type: Boolean, default: false },

I still set the prop explicitly as you stated.

Hello, by setting the boolean option enableResize to "false" (with quotes) you are setting it to be a string value instead. Only the empty string "" will be evaluated to boolean false, all other values are regarded as true - you might as well be setting it to "definitely"

Edit: You know what, I didn't spot this was a vue repo, so perhaps that's a perfectly normal way to set booleans. Sorry, I got lost and thought I was was still on the vanilla croppie repo.

OMG how did I missed this issue? WTH I'm terribly sorry. I was writing my response and realized it was created May 31, 2019. I'm blown. 😞 I will look into this soon.

@jofftiquez is it fixed tho? mine on v2.0.2 not working yet.