Topic: Lightbox close - Document not active since chrome v71

kepner priority asked 5 years ago


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

and here too


  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](); } },

Damian Gemza staff answered 5 years ago

Dear Kepner,

Please update the screenfull library to the latest @4.0.1 version, and the error will be gone.

Best Regards,


Arkadiusz Idzikowski staff answered 5 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.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • 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