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

Checkbox TagHelper does not render custom attributes #7974

Open
kendo-bot opened this issue Sep 13, 2024 · 0 comments
Open

Checkbox TagHelper does not render custom attributes #7974

kendo-bot opened this issue Sep 13, 2024 · 0 comments
Assignees

Comments

@kendo-bot
Copy link
Contributor

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants