Topic: Lightbox close - Document not active since chrome v71
Hi,
I got an error by closing Lightbox
Uncaught (in promise) TypeError: Document not active
at Object.<anonymous> (screenfull.js:117)....
It's a known issue in screenfull.js repo https://github.com/sindresorhus/screenfull.js/issues/120
and here too https://github.com/jpilfold/ngx-image-viewer/issues/23#
Solution:
- Go to the file : ~src/node_modules/screenfull/dist/screenfull.js .
- find around line 100 the exit function
- replace with the following :
exit: function () {
if (this.isFullscreen) {
document[fn.exitFullscreen]();
}
},
Arkadiusz Idzikowski staff answered 6 years ago
Thank you for letting us know about that. We will check this issues and see what we can do to improve our component.
Damian Gemza staff answered 6 years ago
Dear Kepner,
Please update the screenfull library to the latest @4.0.1 version, and the error will be gone.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: Laptop
- Browser: Chrome 72.0.3626.109
- OS: OSX
- Provided sample code: No
- Provided link: Yes