ui-cropper icon indicating copy to clipboard operation
ui-cropper copied to clipboard

IE 11: InvalidStateError

Open meredrica opened this issue 8 years ago • 13 comments

Hi! I've been trying to figure out this issue on IE11:

SCRIPT5022: InvalidStateError
ui-cropper.js (1,1)

The code I use is this:

<ui-cropper
  chargement="loading"
  area-init-size="{w: 400, h: 300}"
  max-canvas-dimensions="$ctrl.dimensions"
  area-type="rectangle"
  aspect-ratio="4/3"
  canvas-scalemode="full-width"
  image="$ctrl.cropImage"
  result-image="$ctrl.resultImage"
  result-image-size="'max'"
  result-blob="$ctrl.dataUrl"
>
</ui-cropper>

The error happens the moment the canvas is set to visible. I could not figure out what's wrong, any ideas?

meredrica avatar Dec 12 '16 12:12 meredrica

Seems like this was closed in #9 but the compiled JS files don't reflect the change yet. Could you release this to NPM?

meredrica avatar Dec 12 '16 14:12 meredrica

sure, in few hours.

CrackerakiUA avatar Dec 12 '16 19:12 CrackerakiUA

Done

CrackerakiUA avatar Dec 13 '16 10:12 CrackerakiUA

Seems like there is also an old version on bower. Could you please update it there too?

DmitrySemchenok avatar Dec 29 '16 10:12 DmitrySemchenok

Are you sure to update npm? Because I still have that error? I also look into the source and I don't see that update.

MateuszAxence avatar Feb 17 '17 12:02 MateuszAxence

which version do you have?

CrackerakiUA avatar Feb 17 '17 14:02 CrackerakiUA

I got the newest (1.0.4) using npm install ui-cropper.

MateuszAxence avatar Feb 17 '17 22:02 MateuszAxence

This is the latest.

CrackerakiUA avatar Feb 17 '17 22:02 CrackerakiUA

Yup, but like I said that version not working for ie. I changed provider in package.json on link from git: https://github.com/CrackerakiUA/ui-cropper.git and seems to be ok and works.

MateuszAxence avatar Feb 18 '17 20:02 MateuszAxence

+1, also getting InvalidStateError on IE11. Running version 1.0.4 installed with npm. Was there an workaround?

farorm avatar Apr 10 '17 14:04 farorm

For release 1.0.4 on npmjs, files in compile folder are not up to date.

hexadecy avatar Apr 25 '17 18:04 hexadecy

With 1.0.6 in Internet Explorer 11 on Windows 10:

SCRIPT5: Access denied. ui-cropper.js (1721,13)

hexadecy avatar Sep 18 '17 16:09 hexadecy

There are some changes I made to fix this issue in IE. Works fine now. PR anyone?

ynaveed avatar Oct 31 '18 09:10 ynaveed