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

Using bind and onblur event on the input element cause "Uncaught (in promise) Error: System.ArgumentException: There is no event handler associated with this event. EventId: '4'" #28179

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

Comments

@PonmaniMurugaiyan
Copy link

Issue Description

When using bind attribute and onblur event on the input element cause Uncaught (in promise) Error: System.ArgumentException: There is no event handler associated with this event. EventId: '4.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorApp531274741370

Replication procedure

  1. Run the sample
  2. Click the Navigate button for go to Counter page
  3. Then enter anything in the TextBox which is rendered in the Counter page
  4. Now, press the back button on chrome browser.
  5. Now, see the console for error

Screenshot

image

Code Snippet

<input @bind="val" @onblur="blurevent" />

@code{
    public void blurevent(FocusEventArgs args)
    {
    }
    public string val { get; set; }
}
@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Nov 26, 2020
@javiercn
Copy link
Member

@PonmaniMurugaiyan thanks for contacting us.

We believe this is a duplicate of #26838

@javiercn javiercn added the ✔️ Resolution: Duplicate Resolved as a duplicate of another issue label Nov 27, 2020
@ghost ghost added the Status: Resolved label Nov 27, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Feb 14, 2021
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

2 participants