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

MudChip OnClick breaks in latest version (5.1.5) #2866

Closed
1 of 2 tasks
MJohnsson opened this issue Sep 28, 2021 · 1 comment · Fixed by #2876
Closed
1 of 2 tasks

MudChip OnClick breaks in latest version (5.1.5) #2866

MJohnsson opened this issue Sep 28, 2021 · 1 comment · Fixed by #2876
Assignees
Labels
bug Something does not work as intended/expected fixed Fix has been merged priority-high

Comments

@MJohnsson
Copy link

Bug type

Component

Component name

MudChip

What happened?

MudChip's OnClick seems to throw an error (nullRef on some class). I've tried several different ways of calling the click-event, but same result.

Expected behavior

The OnClick-event is fired

Reproduction link

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

Reproduction steps

  1. compile/run
  2. error

Relevant log output

System.NullReferenceException: Object reference not set to an instance of an object.
   at MudBlazor.MudChip.get_Classname()
   at MudBlazor.MudChip.BuildRenderTree(RenderTreeBuilder __builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)
   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

Version (bug)

5.1.5

Version (working)

5.1.4

What browsers are you seeing the problem on?

Chrome

On what operating system 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
@JonBunator JonBunator added priority-high bug Something does not work as intended/expected and removed triage labels Sep 28, 2021
@JonBunator JonBunator self-assigned this Sep 28, 2021
JonBunator added a commit to JonBunator/MudBlazor that referenced this issue Sep 28, 2021
JonBunator added a commit to JonBunator/MudBlazor that referenced this issue Sep 28, 2021
@boukenka
Copy link
Contributor

@JonBunator Thank you for the fix. @henon I hope it will be released soon. After the upgrade to the last version, there is no more the display of Chips.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something does not work as intended/expected fixed Fix has been merged priority-high
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants