Skip to content

Blazor - Fast Button raises click event even if disabled #4698

Closed
@ghost

Description

I have a simple fast-button in the disabled state. It may not be in disabled state and then the Click event is valid.

               <fast-button disabled="@Disabled" @onclick="@OnDisClick">
                    Disabled
                </fast-button>

The JSInterop for blazor for the click event...

    private async Task OnDisClick(MouseEventArgs args)
    {
        await JsInteropService.AlertAsync("Disabled Click");
    }

The button is correctly rendered and shows the disabled icon but if I click the onclick event calls OnDisClick...

image

image

Visual Studio 2019
Blazor WebAssembly

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions