So we had some code like so
function handleDayClick(date)
{
if (date.local() < startDate || date.local() >= endDate) {
$("#dayClickMsg").show();
return;
}
$('#dayClickMsg').hide();
//do other stuff
}
and some HTML:
<div id="dayClickMsg" hidden style="color:seagreen; float:right">
Clicked day not in range.
</div>
But after the upgrade, the function doesn't seem to be working. Setting a breakpoint on .show() tells me the element is being fetched properly, but the .show() method call isn't working. Similarily, .hide() is also not working.
Edit, console errors:
sign-error-icon.png:1 Failed to load resource: the server responded with a status of 404 ()
help-icon.png:1 Failed to load resource: the server responded with a status of 404 ()
popper:37 Uncaught SyntaxError: Unexpected token export
sign-error-icon.png:1 Failed to load resource: the server responded with a status of 404 ()
help-icon.png:1 Failed to load resource: the server responded with a status of 404 ()
Edit: Possibly related to https://jquery.com/upgrade-guide/3.0/#breaking-change-show-hide-and-toggle-methods-now-respect-more-stylesheet-changes