vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
565 stars 15 forks source link

ConfirmDialog demo sample doesn't work in Blazor interactive server on .NET 8 #775

Closed marcscheuner-bfh closed 4 days ago

marcscheuner-bfh commented 5 days ago

Describe the bug Trying to get the "confirm dialog" sample to work in .NET 8 Blazor Server.

To Reproduce Steps to reproduce the behavior:

  1. Create new "Blazor Web App", Server-Side rendering, .NET 8
  2. Added Blazor-Bootstrap 3.0.0-preview1
  3. Replicate the "Confirm dialog" sample

Error In the "mypage.razor" page, the line

<ConfirmDialog @ref="dialog" />

is marked with

Error (active) CS0029
Cannot implicitly convert type 'Microsoft.AspNetCore.Components.ElementReference' to 'BlazorBootstrap.ConfirmDialog' Bfh.Ris.Projekteditor

Expected behavior A confirmation dialog should be shown when code runs

Versions (please complete the following information):

gvreddy04 commented 4 days ago

@marcscheuner-bfh Thank you for trying BlazorBootstrap!

Please refer to any of the examples mentioned on the demos page: https://demos.blazorbootstrap.com/confirm-dialog.

Docs reference links:

Screenshot for reference.

image