Lightbox close - Document not active since chrome v71


Topic: Lightbox close - Document not active since chrome v71

kepner pro premium priority asked 6 years ago

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:

  1. Go to the file : ~src/node_modules/screenfull/dist/screenfull.js .
  2. find around line 100 the exit function
  3. 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


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue
  • 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