• Resolved illubyte

    (@illubyte)


    This seems to be just a general bug with the Events calendar. I was running into the issue while developing a website, and then was able to reproduce the bug on the official Demo site, listed on the Events Calendar website (https://wpshindig.com/events/month/).

    On that demo, here are the steps to reproduce the issue:
    (I’m currently using Chrome, but I don’t believe it’s pertinent)

    1) Go to the Month View
    2) Click within the “EVENTS IN” field, but don’t click a date.
    3) Manually type in a date
    4) Press the “FIND EVENTS” button.

    You’ll notice that the ajax request will be made, and the calendar will reload, but it will not reflect the date that you input, rather it will stay the same date.

    After doing some digging, I found that within the src/resources/js/tribe-events-ajax-calendar.js file (or .min.js), when the tribe_events_calendar_ajax_post function is run, within ts.params the eventDate parameter will reflect the changed date, but the tribe-bar-date parameter will remain the same unless the date selector is used. I can not for the life of me figure out how to make the tribe-bar-date parameter reflect the manually input date, but I’m almost certain that that is the reason the calendar is not updating properly.

    I hope someone who knows their way around the Events Calendar infrastructure will have better luck than I in troubleshooting this issue.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thank you for sharing this with me. And all the work you did to try and figure this out. I do indeed hope that someone else who knows how to solve this.

    best wishes,

    Mieke

    Plugin Contributor Andras Guseo

    (@aguseo)

    Hi @illubyte,

    Thanks for reporting this.

    I did the test you suggested on shindig with the following results:
    Now being November I entered 2018-12 and then 2019-01, then clicked on the ‘Find Events’ button:
    – the Calendar grid did reload, with the proper days showing the events in December and Jan 2019 respectively.
    – The title of the calendar did not change
    – The paging buttons for previous and next month did not change

    However, if I pressed the enter key after entering the date (instead of clicking on ‘Find Events’) the calendar, the title and the navigation properly updated as it should.

    The first one is definitely a bug. I will create a bugticket and our developers will take a look at it.

    We’ll report back here when the fix is out.

    Thanks again and cheers,
    Andras

    Hey there! This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Manually input date not updating calendar’ is closed to new replies.