Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interactivity does not work in MudBlazor WASM template for Visual Studio for .NET 8 #458

Closed
1 of 2 tasks
mciprijanovic opened this issue Apr 6, 2024 · 7 comments · Fixed by #465
Closed
1 of 2 tasks

Comments

@mciprijanovic
Copy link

Bug type

Component

Component name

TextField, Button

What happened?

Simply start installed MudBlazor WASM template in Visual Studio 2022 for .NET8 without any coding and it will not work. When going to Counter page and clicking the button, event is not fired. All other controls do not show interactivity like drawer, TextField etc. As I can see mode is set to IntractiveWebAssembly in routes and Head outlet, so, I don't know what is missing there sine that template is provided by MudBlazor people I suppose...

Expected behavior

Expected behavior is that interactivity will work on MudBlazor components. For example button click would be fired and counter would increase on the counter page.

Reproduction link

https://try.mudblazor.com/snippet/GaGoaSuKrbIzrfHH

Reproduction steps

  1. Install MudBlazor templates for Visual studio
  2. Create new project by selecting MudBlazor Web Assembly template
  3. Run the project
  4. Navigate to Counter page
  5. Click Counter button
  6. Nothing happens and counter should increase (method in the razor page is not called)
    ...

Relevant log output

No response

Version (bug)

.NET 8

Version (working)

No response

What browsers are you seeing the problem on?

Edge

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ScarletKuro
Copy link
Member

Hi.

Can you upload your project in zip or as git repository?

@mikes-gh mikes-gh transferred this issue from MudBlazor/MudBlazor Apr 7, 2024
@mciprijanovic
Copy link
Author

Here is the zip file of the original project. It is a bit weird that noone complained since it is default project template in VS without changing a single line of code.
MudBlazorWasmExample.zip

@ScarletKuro
Copy link
Member

ScarletKuro commented Apr 7, 2024

@mikes-gh did we not post a new version of template on nuget? I see it's still the buggy one with RC libraries etc.

@mikes-gh
Copy link
Contributor

mikes-gh commented Apr 7, 2024

I just used current one. Its version 1.0.0 with latest 8.* libs

@mikes-gh
Copy link
Contributor

mikes-gh commented Apr 7, 2024

@mciprijanovic can you post dotnet new list

@ScarletKuro
Copy link
Member

ScarletKuro commented Apr 7, 2024

@mciprijanovic can you post dotnet new list

this does not show the version tho.

I would recommend to run

dotnet new update MudBlazor.Templates

and try again?

@mciprijanovic
Copy link
Author

Hi, it works with template updated to 1.0.0. However the question is: where is the difference? I have my own project, so I can not now create new one from scratch and copy all classes, namespaces etc.
MudBlazor Nuget package on the client project is MudBlazor 6.19.1 on both projects: new one with template 1.0.0 and old one 0.6.5, also, code of the mainPage, app component, Program.cs, Routes component and Counter page is more less the same... Which part should I replace in my project so the interactivity can work? What exactly is updated in the new template so I can do the same update in my project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants