We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226d813 commit 4116d5cCopy full SHA for 4116d5c
src/BootstrapBlazor/wwwroot/modules/fullscreen.js
@@ -1,6 +1,16 @@
1
-import { isElement } from "./utility.js"
+import { isElement, registerBootstrapBlazorModule } from "./utility.js"
2
+import EventHandler from "./event-handler.js"
3
4
export async function toggle(options) {
5
+ registerBootstrapBlazorModule("FullScreen", null, () => {
6
+ EventHandler.on(document, "fullscreenchange", () => {
7
+ if (document.fullscreenElement === null) {
8
+ [...document.querySelectorAll('.bb-fs-open')].forEach(el => {
9
+ el.classList.remove('bb-fs-open');
10
+ })
11
+ }
12
+ });
13
14
let el = null;
15
options = options || {};
16
if (options.id) {
0 commit comments