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

fixes #4442
This commit is contained in:
Johannes Meyer 2021-07-26 15:37:50 +02:00
parent aa66c9766d
commit bf229c97b8
1 changed files with 7 additions and 0 deletions

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;