Possible Uncaught TypeError introduced in Community Events 4.4.1

Home Forums Calendar Products Community Events Possible Uncaught TypeError introduced in Community Events 4.4.1

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1231751
    Danial Bleile
    Participant

    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.

    #1232615
    Nico
    Member

    This reply is private.

    #1234763
    Danial Bleile
    Participant

    This reply is private.

    #1235257
    Nico
    Member

    This reply is private.

    #1251782
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Possible Uncaught TypeError introduced in Community Events 4.4.1’ is closed to new replies.