Unplanned
Last Updated: 23 Nov 2026 15:22 by ADMIN
Daniel
Created on: 23 Nov 2026 05:53
Category: DatePicker
Type: Bug Report
0
DatePicker and DateTimePicker ignore the readonly attribute under jQuery 4 and strip it from the input

Summary

A Kendo UI DatePicker or DateTimePicker created on an <input readonly> should start read-only. With Kendo UI 2026.4.1111 on jQuery 4, it starts editable instead:

  • the widget removes the readonly attribute from the input;
  • aria-readonly is false;
  • clicking the calendar button opens the calendar, and the user can pick a new date.

The same markup works on Kendo UI 2026.4.1111 with jQuery 3.7.1, and on Kendo UI 2025.3.825 with jQuery 4. TimePicker, DateInput and NumericTextBox are not affected. The kendo-ui 2026.4.1111 package declares jQuery 1.10.0 - 4.* as supported.

Cause (from the source)

In 2026.4.1111, kendo.datepicker.js (line 228) and kendo.datetimepicker.js (line 42) decide the default for the readonly option by testing the truthiness of the jQuery attribute value:

if (!kendo.isPresent(options.readonly) && element.attr("readonly")) options.readonly = true;
else if (!kendo.isPresent(options.readonly)) options.readonly = false;

jQuery 4 dropped the normalization of boolean attributes. For <input readonly>, .attr("readonly") now returns "", where jQuery 3 returned "readonly":

<input readonly><input readonly="readonly">
jQuery 3.7.1"readonly""readonly"
jQuery 4.0.0"""readonly"
jQuery 4.1.0"""readonly"

"" is falsy, so options.readonly becomes false. The widget then writes readonly: false to the input during init (kendo.datepicker.js line 251), which removes the attribute, and initializes as editable. Setting the attribute from script with input.readOnly = true produces the same empty value, so it hits the same path.

Environment

  • Kendo UI for jQuery 2026.4.1111 (npm @progress/kendo-ui, umd/kendo.all.min.js). Seen in production through Telerik UI for ASP.NET Core 2026.4.1111 with a custom kendo-cli bundle of the same version.
  • jQuery 4.0.0 and 4.1.0 (fail); jQuery 3.7.1 (passes).
  • Control version: Kendo UI 2025.3.825 (passes with both jQuery 3.7.1 and 4.0.0).
  • Chromium 141 (Playwright 1.56.1), Windows 11 x64. The behavior comes from the attribute logic above, not from the browser.

Steps to reproduce (attached project)

npm install
npx playwright install chromium
npm run repro

repro.html creates a DatePicker, DateTimePicker, TimePicker, DateInput and NumericTextBox, each on an input with the readonly attribute in its markup, plus one DatePicker given the readonly: true option instead. run.mjs loads the page with each jQuery and Kendo combination, records whether the readonly attribute survived init and the aria-readonly value, and clicks each DatePicker's calendar button to see whether the calendar opens.

To see it in a browser, open repro.html?jquery=4.0.0&kendo=2026.4.1111 from a local web server in the project folder. The jquery parameter takes 3.7.1, 4.0.0 or 4.1.0, and kendo takes 2025.3.825 or 2026.4.1111.

Observed (sample-output/console-output.txt)

jQuery 3.7.1 + Kendo UI 2026.4.1111
  ok   datepicker         readonly attribute kept: true   aria-readonly: true   calendar opens on click: false
  ok   datetimepicker     readonly attribute kept: true   aria-readonly: true

jQuery 4.0.0 + Kendo UI 2025.3.825
  ok   datepicker         readonly attribute kept: true   aria-readonly: true   calendar opens on click: false
  ok   datetimepicker     readonly attribute kept: true   aria-readonly: true

jQuery 4.0.0 + Kendo UI 2026.4.1111
  BUG  datepicker         readonly attribute kept: false  aria-readonly: false  calendar opens on click: true
  BUG  datetimepicker     readonly attribute kept: false  aria-readonly: null
  ok   timepicker         readonly attribute kept: true   aria-readonly: true

jQuery 4.1.0 + Kendo UI 2026.4.1111
  BUG  datepicker         readonly attribute kept: false  aria-readonly: false  calendar opens on click: true
  BUG  datetimepicker     readonly attribute kept: false  aria-readonly: null

The full output, with all five widgets for every combination, is in sample-output/console-output.txt. The result is deterministic: the same combinations fail on every run.

Expected behavior

A DatePicker or DateTimePicker created on an input that has the readonly attribute starts read-only on every supported jQuery version: the attribute stays, aria-readonly is true, and the calendar does not open. This is how both widgets behave with jQuery 3, and how 2025.3.825 behaves with jQuery 4.

Suggested fix

Test whether the attribute is present instead of the truthiness of its value, for example element.is("[readonly]") (the check the same init already makes a few lines later, in readonly(element.is("[readonly]"))) or element.prop("readOnly"), in kendo.datepicker.js and kendo.datetimepicker.js. Other widgets that default an option from a boolean attribute with .attr(...) truthiness would have the same problem under jQuery 4.

Workarounds

  • Pass the option explicitly: kendoDatePicker({ readonly: true }), or in Telerik UI for ASP.NET Core, the tag helper's readonly attribute (<kendo-datepicker readonly="true" ...>). This is what we shipped.
  • Write the attribute with a value, readonly="readonly", which jQuery 4 still returns as a truthy string. Checked on jQuery 4.0.0 + 2026.4.1111: both widgets keep the attribute and start read-only.
1 comment
ADMIN
Viktor Tachev
Posted on: 23 Nov 2026 15:22

Hello Daniel,

Thank you for reporting the issue to us and for the provided additional details.

I have converted your report into a bug report and added it to our backlog. You can follow its progress through our Feedback Portal. 

As a token of gratitude for bringing the issue to our attention I have updated your Telerik points.

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.