Skip to content

[Bug]: Button: Stays disabled if Command.CanExecuteChanged before rendered #6524

@njannink

Description

@njannink

Blazorise Version

2.0.3

What Blazorise provider are you running on?

FluentUI2

Link to minimal reproduction or a simple code snippet

I have DataGrid with a refresh button that fires my backend refresh command. When the component initializes this refresh command is started so at that moment the CanExecute is false because the command is executing. Then during the first render the command becomes enabled again, but the button stays disabled

Steps to reproduce & bug description

Created a unit-test to prove this behavior

What is expected?

Button handles the events correctly not dependent on the render state

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    ✔ Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions