-
-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Describe the bug
When loading a new page in Safari with the library in the solution I get the following error in the browser console:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find 'window.blazorBootstrap.modal.initialize' ('blazorBootstrap' was undefined). @https://ourDomain.com/_framework/blazor.webassembly.js:1:377
It only happens when I open a new page and sometimes when I hard refresh but not always and ONLY in Safari.
To Reproduce
Not possible
Expected behavior
Not possible
Screenshots
Versions (please complete the following information):
- .NET Version: .NET 8
- BlazorBootstrap: 3.4.0
- Blazor WebAssembly / Server: WebAssembly
- Blazor Interactive Render Mode: None
- Blazor Interactivity Location: Not really sure how I know that...
Sample code
in csproj:
<PackageReference Include="Blazor.Bootstrap" Version="3.4.0" />
In _Imports.razor:
@using BlazorBootstrap
In index.html I have not used the bootstrap-icons (Im using font-awsome):
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> <script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
GitHub repo
Not possible
Desktop (please complete the following information):
- OS: iOS
- Browser: Safari
- Version: 26.1 (Safari)
Smartphone (please complete the following information):
Not tested
Additional context
Add any other context about the problem here.