简体   繁体   中英

jquery 3.5.1 and tempusdominus datetimepicker not working together

I am using this library:
https://github.com/tempusdominus/bootstrap-4

But after updating to jquery 3.5.1, I am facing this issue:
https://github.com/tempusdominus/bootstrap-4/issues/164

The datepicker-days are not shown as expected.
Any one having the same issue or might have solved the problem?

As of today you can use this fork here which is updated and compatible with the latest version of jQuery.

The original tempusdominus/bootstrap-4 is unmaintained and this fork features a set of bugfixes and new features.

Installation

npm i --save tempusdominus-bootstrap tempusdominus

Usage

If you are using ES6, you can use the plugin in your code this way:

import $ from "jquery";
import "tempusdominus-bootstrap";

$("#my-datetimepicker").datetimepicker({
  // Options...
});

If you are using React, you can also check out this library here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM