[Vuejs]-This.$refs.fullscreen.toggle is not a function error when using Vue full screen package

-1👍

Finally this work for me

document.querySelector("#toFull").addEventListener("fullscreenchange", function (event) {
        if (document.fullscreenElement) {
          document.querySelector("#exitFullScreen").style.display = "block";
        } else {
          document.querySelector("#exitFullScreen").style.display = "none";
        }
    });

Leave a comment