Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enableResize seems to be always enabled #64

Open
yennor opened this issue May 31, 2019 · 4 comments
Open

enableResize seems to be always enabled #64

yennor opened this issue May 31, 2019 · 4 comments

Comments

@yennor
Copy link

yennor commented May 31, 2019

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

@gordonmckenzie
Copy link

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.

@barrywoolgar
Copy link

barrywoolgar commented Oct 23, 2020

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.

@jofftiquez
Copy link
Owner

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.

@tonywei92
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants