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

DOM Exception when hidding croppie with ng-if or ng-show #46

Open
rayitopy opened this issue Mar 14, 2018 · 0 comments
Open

DOM Exception when hidding croppie with ng-if or ng-show #46

rayitopy opened this issue Mar 14, 2018 · 0 comments

Comments

@rayitopy
Copy link

rayitopy commented Mar 14, 2018

When you hide the croppie with ng-if or ng-show there is a infinte loop with this error

croppie error
Croppie error

My code looks like this:

        #cropper(ng-if="vm.showCrop")
          ng-croppie(
              src="vm.model.avatarCrop"
              ng-model="vm.model.photo"
              update='vm.onImageCrop'
              boundry="{w: 400, h: 400}"
              viewport="{w: 400, h: 400}"
              orientation="true"
              rotation="90"
              type="circle")

The issue happens after settting vm.showCrop to false
I saw that in croppiejs there is a method to destroy the croppie instance but I didn't found a way to do it with ngCroppie

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

1 participant