Completed
Last Updated: 15 Feb 2022 09:44 by ADMIN
Release 2022.R1.SP.next
Ling
Created on: 07 Feb 2022 08:01
Category: Checkbox
Type: Bug Report
0
Html attributes applied by .HtmlAttributes method are attached to the hidden input field

Bug report

When CheckBox is initialized by using Html helper in Telerik UI MVC app, the.HtmlAttributes() configuration applies the attributes to the hidden input field instead of the Checkbox.

Reproduction of the problem

  1. Sample Checkbox configuration :
    @Html.Kendo().CheckBox().Name("mybox").HtmlAttributes(new { onclick = "MyHandler()" });

  2. The attached attributes are applied to the hidden input field, not to the checkbox itself.

Current behavior

The attached attributes are applied to the hidden input field, not to the checkbox itself.

Expected/desired behavior

The attached attributes are applied to the checkbox.

Environment

  • Kendo UI version: 2022.1.119
  • Browser: [all ]
0 comments