Map does not reenter fullscreen, when entered first time and went back to normal screen if the position of the fullscreen control was changed with fullscreenControlOptions:{position:X}, when having markers

Author: AbdullahPSCreated May 9, 2022Updated Apr 8, 2025

Map does not reenter fullscreen, when entered first time and went back to normal screen if the position of the fullscreen control was changed with fullscreenControlOptions:{position:X}, when having markers

A clear and concise description of what the bug is.

**To Reproduce **

Steps to reproduce the behavior:

  1. Change the fullscreen cpntrol option position with fullscreenControlOptions:{position:X} on controls (choose a number for X)
  2. Click on Fullscreen to view the map in fullscreen
  3. Render the marker in fullscreen mode or place a location marker in fullscreenmode (NOTE: when placing the marker in normal mode and then switched to fullscreen the error does not occur)
  4. Go back to normal fullscreen
  5. Wont enter fullscreen with error message : "controls.js:50 Uncaught (in promise) TypeError: Failed to execute 'exitFullscreen' on 'Document': Document not active at HTMLButtonElement."

A clear and concise description of what you expected to happen.

**Screenshots **

If applicable, add screenshots to help explain your problem.

Environment:

  • OS: Ubuntu/Windows
  • Browser tested on chrome and firefox

Source: google-map-react/google-map-react