Hey @matumu thank you for your reply here. We did some more digging and it appears this is an issue when calling the datepicker.min.js file from jQuery UI https://api.jqueryui.com/datepicker/. In this instance we were calling this file for a different plugin.
We were able to solve this by dequeuing this file specifically on the pages that load the events calendar calendar. This should be solved now, thanks!
Here is the code we used to dequeue the script for documentation.
add_action('wp_head',function(){
function dequeue_datepicker_script() {
var_dump(get_body_class());
$event_post_classes = [
'tribe-events-page-template'
];
$classes = get_body_class();
// echo('Classes: ' . $classes[1]);
$exists = false;
foreach ($event_post_classes as $event_class) {
// echo($event_class);
if (in_array($event_class, $classes)) {
echo('did it run?');
$exists = true;
break;
}
}
return $exists;
};
if (dequeue_datepicker_script()) {
wp_dequeue_script('gforms_datepicker');
}
});