I've created a modal with sweetalert2 and the input field is a datepicker widget from tempusdominus but the calendar shows behind the buttons of the modal as the following image:
My code is the following:
Swal.fire({
title: 'Pay',
html: '<input type="text" name="payment_day" class="datetimepicker-input swal2-input" autocomplete="off" data-toggle="datetimepicker" data-target="#payment_day" id="payment_day">',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Confirm',
cancelButtonText: 'Cancel',
onOpen: function () {
$('#payment_day').datetimepicker({
format: 'L'
});
},
}).then((result) => {});