Incompatibility with Drupal 11/jQuery 4

Created on 9 September 2025, 5 days ago

Problem/Motivation

Drupal 11 uses jQuery 4. But jQuery.type() is deprecated and no longer available in jQuery 4. Therefore the library does not work out of the box in Drupal 11 installations.

Uncaught TypeError: $.type is not a function
    at HTMLInputElement.<anonymous> (jquery.datetimepicker.full.js?t2bnbx:2631:10)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:2876)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:1386)
    at $.fn.datetimepicker (jquery.datetimepicker.full.js?t2bnbx:2591:8)
    at HTMLInputElement.<anonymous> (drupal.single_datetime.js?t2bnbx:134:35)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:2876)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:1386)
    at Object.attach (drupal.single_datetime.js?t2bnbx:63:70)
    at drupal.js?v=11.2.3:166:24
    at Array.forEach (<anonymous>)

Steps to reproduce

D11 with single_datetime fully set up, try to select a date, not possible at all, get above error.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

leymannx Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024