datetime-picker.js: Don't do anything with native inputs

fixes #4442

(cherry picked from commit bf229c97b8e2f1add700d245e8f405bde6c19caf)
This commit is contained in:
Johannes Meyer 2021-07-26 15:37:50 +02:00
parent 9e07db2e8c
commit 00a2572db1

View File

@ -66,6 +66,13 @@
_this.cleanupPickers(containerId);
$.each(inputs, function () {
if (this.type !== 'text') {
// Ignore native inputs. Browser widgets are (mostly) superior.
// TODO: This makes the type distinction below useless.
// Refactor this once we decided how we continue here in the future.
return;
}
var server_format = _this.server_full_format;
if (this.type === 'date') {
server_format = _this.server_date_format;