datetime-picker.js: Append flatpickr container not to body

The body isn't cleared without a full reload. This way the
flatpickr container resides in the same container as the
input's form.
This commit is contained in:
Johannes Meyer 2021-04-15 17:58:44 +02:00
parent 025c50f8a5
commit 90a056d988
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@
var dateTimeFormatter = _this.createFormatter(! disableDate, enableTime); var dateTimeFormatter = _this.createFormatter(! disableDate, enableTime);
var options = { var options = {
locale: _this.loadFlatpickrLocale(), locale: _this.loadFlatpickrLocale(),
appendTo: this.form.parentNode,
altInput: true, altInput: true,
enableTime: enableTime, enableTime: enableTime,
noCalendar: disableDate, noCalendar: disableDate,