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

Picker TagHelpers do not set the value in conjunction with the "for" and "value" attributes. #8056

Open
alestoya opened this issue Nov 21, 2024 · 0 comments
Assignees
Labels
Bug C: DateInput C: DatePicker C: TimePicker FP: In Development Sync status with associated Feedback Item Regression Broken functionality which was working previously S: Wrappers (ASP.NET Core) SEV: High
Milestone

Comments

@alestoya
Copy link

Bug Report

Picker TagHelpers do not set the "value" attribute in conjunction with the "for" attribute.

Reproduction of the problem

  1. Create a model with a nullable DateTime property
         public class MyModel
         {
               public DateTime? Birthday { get; set; }
         }
  2. Declare either a DatePickerFor, DateInputFor, or TimePickerFor TagHelpers and assign a value
        @model OrderViewModel
        <kendo-dateinput for="OrderDate" value="DateTime.Now">
          ...
        </kendo-dateinput>
  3. Notice, that the value has not been assigned accordingly.

This behavior is not consistent with the HTMLHelper, as the Value() attribute is taken more predominantly when the PickerFor HtmlHelper is utilized:

@(Html.Kendo().DatePickerFor(m => m.ShippedDate)
    .Value(DateTime.Today)
)

Current behavior

Picker TagHelpers do not set the "value" attribute in conjunction with the "for" attribute.

Expected behavior

Picker TagHelpers should set the "value" attribute in conjunction with the "for" attribute.

Environment

Kendo UI version: 2024.4.1112
jQuery version: x.y
Browser: [all]

@alestoya alestoya added this to the 2025 Q1 (Feb) milestone Nov 21, 2024
@alestoya alestoya self-assigned this Nov 21, 2024
@github-actions github-actions bot added the FP: Planned Sync status with associated Feedback Item label Nov 21, 2024
@alestoya alestoya changed the title Picker TagHelpers do not set the "value" attribute in conjunction with the "for" attribute. Picker TagHelpers do not set the value in conjunction with the "for" and "value" attributes. Nov 21, 2024
@alestoya alestoya added SEV: High and removed FP: Planned Sync status with associated Feedback Item labels Nov 21, 2024
@mihaela-lukanova mihaela-lukanova added the FP: In Development Sync status with associated Feedback Item label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: DateInput C: DatePicker C: TimePicker FP: In Development Sync status with associated Feedback Item Regression Broken functionality which was working previously S: Wrappers (ASP.NET Core) SEV: High
Projects
None yet
Development

No branches or pull requests

3 participants