In by Blazor WASM app, if I attempt to navigate directly to a page other than the root (say https://example.com/MyPage), including when refreshing the page, I get the following exception:
Microsoft.JSInterop.JSException: Could not find 'mudElementRef.addOnBlurEvent' ('mudElementRef' was undefined). Error: Could not find 'mudElementRef.addOnBlurEvent' ('mudElementRef' was undefined). at http://localhost:5129/_framework/blazor.webassembly.js:1:368 at Array.forEach (<anonymous>) at l.findFunction (http://localhost:5129/_framework/blazor.webassembly.js:1:336) at w (http://localhost:5129/_framework/blazor.webassembly.js:1:5079) at http://localhost:5129/_framework/blazor.webassembly.js:1:2872 at new Promise (<anonymous>) at b.beginInvokeJSFromDotNet (http://localhost:5129/_framework/blazor.webassembly.js:1:2835) at Object.vn [as invokeJSJson] (http://localhost:5129/_framework/blazor.webassembly.js:1:58849) at http://localhost:5129/_framework/dotnet.runtime.js:3:178501 at $l (http://localhost:5129/_framework/dotnet.runtime.js:3:179335)I'm using:
- .NET 8.0
- Preview C# language version
- Microsoft.AspNetCore.Components.WebAssembly 8.0.17
- MudBlazor 8.7.0
I've managed to reproduce this bug on Brave browser for desktop and WaterFox for Android.
I feel like more context would be useful here, but I'm not sure what to provide - more than happy to provide any information suggested.