<RadzenIcon Icon="fullscreen">
can cause element.requestFullscreen()
to misbehave in Chrome.
This repository demonstrates a possible issue related to RadzenIcon, element.requestFullscreen, and the Chrome web browser.
- Start a new Blazor WASM Standalone project
- Add Radzen to the project
- Add a
<RadzenIcon Icon="fullscreen">
to a page - Add code to the page to call
element.requestFullscreen()
on a div when a button is clicked - Run the project in Chrome
- Click the button to request fullscreen
- Observe that the entire document goes fullscreen and not the element that called
requestFullscreen()
The element that called requestFullscreen()
should go fullscreen and not the entire document.
The entire document goes fullscreen and not the element that called requestFullscreen()
This issue does not occur in Firefox or Edge. It has been observed in Chrome 133 on Windows 10, and macOS Sequoia.
The issue seems to not appear if you do not use a <RadzenIcon>
with a fullscreen
icon. If you use a different icon, the issue does not occur.
- Visit the demo link above.
- Click the
With RadzenIcon
in the nav bar - Click the
Toggle Fullscreen
button - Observe the issue
!IMPORTANT:
- Close the tab, and in a new tab go to the Demo again. (Refreshing the tab does not fully reset the issue.)
- Visit the demo link above.
- Click the
Without RadzenIcon
in the nav bar - Click the
Toggle Fullscreen
button - Observe the issue does not occur
- Radzen 6.0.19
- Windows 10 64 bit
- macOS Sequoia (tested on browserstack.com)
- Chrome 133
<RadzenIcon Icon="fullscreen">
can causeelement.requestFullscreen()
to misbehave in Chrome.<RadzenIcon>
with icons other thanfullscreen
have shown to not trigger the issue.
Issue on macOS Sequoia on browserstack.com: Sequoia Chrome 133 Video
Issue on Windows 10 on browserstack.com: Windows 10 Chrome 133 Video