jpilfold / ngx-image-viewer

An image viewer component for Angular 2+
MIT License
49 stars 54 forks source link

TypeError: Document not active #39

Open vishalmote opened 5 years ago

vishalmote commented 5 years ago

Using Chrome version : 76.0.3809.100 angular version : 8 ngx-image-viewer version :^1.0.13 [which is latest one] this issue has been marked as fix, but still facing it in latest version even on demo link given below has the issue https://angular-2wrbwp.stackblitz.io/ which is occuring on page load

any suggestion?

Uncaught (in promise) TypeError: Document not active
    at exit (screenfull.js:102)
    at ToggleFullscreenDirective.ngOnChanges (ngx-image-viewer.js:446)
    at checkAndUpdateDirectiveInline (core.js:24485)
    at checkAndUpdateNodeInline (core.js:35151)
    at checkAndUpdateNode (core.js:35090)
    at debugCheckAndUpdateNode (core.js:36112)
    at debugCheckDirectivesFn (core.js:36055)
    at Object.eval [as updateDirectives] (ImageViewerComponent.html:2)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:36043)
    at checkAndUpdateView (core.js:35055)
nirav5884 commented 5 years ago

Any help here? Or should we downgrade the latest version?

baj9032 commented 5 years ago

same issue help needed.

baj9032 commented 4 years ago

@nirav5884 I downgrade version to 1.0.0 then after it gives same error

KaduAmaral commented 4 years ago

Update the dependency screenfull to fix.

vishnu-dev commented 4 years ago

How do we do that @KaduAmaral ?

baj9032 commented 4 years ago

Update the dependency screenfull to fix.

Not working I tried with "ngx-image-viewer": "^1.0.13" and "fullscreen":"5.0.0"

vishnu-dev commented 4 years ago

Yes, does not work. I switched to ngx-viewer library. It's good. @baj9032