I've been using jQuery & jQuery UI in my plugins up to Moodle 3.3, which has worked fine, but i'm testing in 3.4 now and it's not working.
I've been putting this at the top of any pages that need it:
$PAGE->requires->jquery();
$PAGE->requires->jquery_plugin('ui');
Which loads the 2 scripts and everything is fine, prior to 3.4.
Now, even though the scripts are still getting loaded:
<script type="text/javascript" src="http://localhost/moodle/theme/jquery.php/core/jquery-3.2.1.js"></script>
<script type="text/javascript" src="http://localhost/moodle/theme/jquery.php/core/ui-1.12.1/jquery-ui.js"></script>
I am not able to use the UI datepicker function, and am getting a console error "datepicker is not a function".
I've tried in the clean moodle theme and it's the same issue.
I've also noticed that even if I remove the requires-> calls, a jquery-3.2.1.min.js file is still being included by Moodle, though not a jquery ui one.
I have a lot of scripts which rely on jquery and jquery ui and at the moment nothing is working.
Does anyone know what might be causing this issue?