The 4.4.1 update of The Events Calendar Community Events included some new JavaScript to “Change input type from Text to Date when viewport width is 320px or less in order to invoke the native datepicker“.
For some reason, on our sites at WSU, the code in this JS attached to document.ready is firing after the code attached to the load and resize.tribe events. When this happens, the expected variables $mobile_datepicker and $mobile_timepicker are undefined and an error is thrown. This error breaks the remaining JavaScript on the page.
If the JS change in 4.4.1 is reverted, everything works fine.
I’ve hotfixed the plugin in our repository, but this is something that should be addressed upstream as well.
I tried to upload a .patch and a .txt file, but it doesn’t let me. Please let me know if you’d like to see the necessary code change.
I’d also be willing to submit this as a PR to a GitHub repository if one is available.