Elementor Popup jQuery Datepicker is closing the popup

When I have a form with a datepicker in an Elementor popup the datepacker closes the popup when you choose a date. Does anyone know how to fix this?