Skip to content

Change event is fired when Inline Editor bound to Model #8415

@VicTachev

Description

@VicTachev

Reproduction of the problem

The event is fired only the first time after Editor is rendered.

  1. Use Inline Editor
  2. Bind to a non-empty Text property
  3. When loaded click in the editor and then outside without making changes
View

@model Kendo.Mvc.Examples.Models.Editor.SampleData

@(Html.Kendo().EditorFor(m=>m.Content)
    .Tag("div")
    .Events(e=>e.Change("onChange"))
)
Controller

public IActionResult Inline_Editing()
{
    var data = new SampleData() {
        Id = 1,
        Content = "<p>This is an example of inline editing with Kendo UI Editor.</p>"
    };

    return View(data);
}
Model

public class SampleData
{
    public int Id { get; set; }
    public string Content { get; set; }

}
JavaScript

function onChange(e) {
	console.log("Editor content changed.");
}

Current behavior

Change event is fired without making changes

Expected/desired behavior

Change event should not be triggered.

TicketID:

1706638

Environment

  • Kendo UI version: 2025.4.1217

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions