Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Calendar bug on iOS and Android

    SmartClient Version: SNAPSHOT_v13.1d_2024-08-24/AllModules Development Only (built 2024-08-24)

    Safari on iOS, both physical device and XCode simulator
    Chrome on Android 12, Android studio emulator Pixel 5

    Hello, please try this test case (in the simple calendar sample):

    Code:
    isc.Calendar.create({
        ID: "eventCalendar",
        startDate: eventData.getDataStartDate(),
        data: eventData,
        // this flag means events will only show hovers if their content is not fully visible already
        alwaysShowEventHovers: false,
        eventClick: function (event, viewName) {
            isc.logEcho("eventClick")
    // show custom dialog
            return false;
        },
        showEventDialog: function (event, isNewEvent) {
            isc.logEcho("showEventDialog")
    // show custom dialog
            return false;
        }
    });
    I use this pattern to show a custom dialog to create new events (showEventDialog) and to edit existing events (eventClick). Please correct me if it's a bad practice.

    Now I noticed a problem on iOS and Android. In the day view, if you click on an existing event, you'll see logged both 'eventClick' and then 'showEventDialog'.
    It's not happening on MacOS, tested with Safari, Chrome and FF.

    #2
    hi Claudio,

    This one's been addressed - the return-value from your custom eventClick() wasn't being bubbled all the way back to the click() event on the EventCanvas, so wasn't cancelling the click - it was being picked up by default view.rowClick() code and showing the eventDialog for a new event at the click-location.

    Please retest with today's builds, dated August 25 or later.

    Comment


      #3
      SmartClient Version: SNAPSHOT_v13.1d_2024-08-25/AllModules Development Only (built 2024-08-25)

      I can confirm it'x fixed, thank you very much

      Comment

      Working...
      X