ASP.NET Core 101 Contoso Crafts Website Upgrade To .NET 8
Hello, After the release of .NET 8, I tried upgrading some of the sample projects that I have written in .NET Core 3.x to .NET 8. These were tutorials or video series from Microsoft Learn website that taught students the basics of .NET Core. The only major change that I have for this project is to fix a minor issue in the Blazor component which is Bootstrap modal not showing on first button click. The solution I found in the forums is to add a mouseover event to the button which is explained First click modal doesn't open in .NET 5 Blazor server side bool unlock; void start( string productId) { if (!unlock) { selectProductId = productId; selectedProduct = ProductService.GetProducts().First(x => x.Id == productId); unlock = true ; } } See below the complete Blazor component with the modal click issue. @using Microsoft.AspNetCore.Components.Web @using ContosoCrafts.WebSite.Models @using ContosoCrafts.WebSite.Services @inject Json