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

Blazor wasm any event + @onfocusout event produces System.ArgumentException error only in Chrome #21366

Closed
Grizor1911 opened this issue Apr 30, 2020 · 1 comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved

Comments

@Grizor1911
Copy link

<input id="EditBox" type="text" @onkeydown="KeyWasPressed" @onfocusout="() => anymethod()" value="@anyValue" />

@code{
    int RowId;  

    private void KeyWasPressed(KeyboardEventArgs e)
    {
       RowId = 0; // needed to set some variable or anything for the error to appear
    }

    private void anymethod()
    {
       RowId = 0;
    }
}

When any key is pressed in the input element, this error appears:
System.ArgumentException: There is no event handler associated with this event. EventId: '416'.
Parameter name: eventHandlerId

The error only appears using Chrome and including onfocusout event or maybe with others events too.

Can you help me with this please ?
Thanks.

@pranavkm pranavkm added the area-blazor Includes: Blazor, Razor Components label Apr 30, 2020
@mkArtakMSFT
Copy link
Member

mkArtakMSFT commented Apr 30, 2020

Thanks for contacting us. This is a dupe of #21241

@mkArtakMSFT mkArtakMSFT added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Apr 30, 2020
@ghost ghost added the Status: Resolved label Apr 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators May 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Duplicate Resolved as a duplicate of another issue Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants