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

enableResize seems to be always enabled

Open yennor opened this issue 5 years ago • 4 comments

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

yennor avatar May 31 '19 15:05 yennor

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.

gordonmckenzie avatar Nov 21 '19 13:11 gordonmckenzie

~~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.

barrywoolgar avatar Oct 23 '20 23:10 barrywoolgar

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. :disappointed: I will look into this soon.

jofftiquez avatar Oct 25 '20 02:10 jofftiquez

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

tonywei92 avatar Aug 26 '21 04:08 tonywei92