Skip to content

Checkbox TagHelper does not render custom attributes #7974

@kendo-bot

Description

@kendo-bot

Bug report

When adding custom attributes to the CheckBox Taghelper, they are not added to the input element.

Reproduction of the problem

  1. Define a CheckBox Taghelper and add 'data-bind="checked: Test"' to its tag:

  1. Inspect the CheckBox element and you will see that the "data-bind" attribute is missing.

  2. When using the HtmlHelper version of the CheckBox, the attributes added through the HtmlAttributes() option are added as expected.

A REPL sample for reproduction: https://netcorerepl.telerik.com/mIuZlRle01kh6Ly043

Expected/desired behavior

The specified attributes must be added to the input element of the CheckBox Taghelper.

Environment

  • **Telerik UI for ASP.NET Core version: 2024.2.514
  • **Browser: [all]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions