Announcement

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

    Calendar error after opening/closing the context menu on an event

    SmartClient Version: v11.1p_2017-11-08/AllModules Development Only (built 2017-11-08)

    Chrome on OSX

    Hello, please try the #databoundCalendar sample:
    - right click on an event, so that the native context menu is shown
    - click outside or use ESC to close the context menu
    - when you move the mouse out of the event, the same error is repeated in the developer console:

    Code:
    12:21:59.335:MMV9:WARN:Log:TypeError: Cannot read property 'event' of undefined
    Stack from error.stack:
        _3.dragRepositionStart(<no args: exited>) on [Canvas ID:eventCalendar_weekView_eventDragTarget] @ ISC_Calendar.js:39:169
        [c]EventHandler.bubbleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2045:89
        [c]EventHandler.handleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1793:351
        [c]EventHandler.handleDragStart(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1942:205
        EventHandler.__handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1863:5
        EventHandler._handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1854:244
        [c]EventHandler.handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1854:11
        [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseMove(), _2=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2131:108
        HTMLDocument.eval(event=>[object MouseEvent]) @ [no file]:3:123

    #2
    Can you confirm your version of Chrome? Do you see this issue in any other browser/OS combination?

    We're not seeing any issues in this online sample, but we'll go ahead and add a null check that should prevent this in tomorrow's builds.

    Comment


      #3
      Hello, I see it in Mac OSX Sierra, both Safari and Chrome 62.0.3202.89 (64 bit). I don't see it in Firefox.

      The stack trace in Safari using build:
      SmartClient Version: v11.1p_2017-11-09/AllModules Development Only (built 2017-11-09)

      Code:
      09:30:02.366:MMV4:WARN:Log:TypeError: undefined is not an object (evaluating '_1.event')
      Stack from error.stack:
      dragRepositionStart@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Calendar.js?isc_version=v11.1p_2017-11-09.js:39:168
      isc_c_EventHandler_bubbleEvent@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:2045:89
      isc_c_EventHandler_handleEvent@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:1793:362
      isc_c_EventHandler_handleDragStart@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:1942:216
      isc_c_EventHandler___handleMouseMove@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:1863:20
      isc_c_EventHandler__handleMouseMove@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:1854:247
      isc_c_EventHandler_handleMouseMove@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:1854:14
      isc_c_EventHandler_dispatch@https://www-demos.smartclient.com/smartclient-11.1/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-09.js:2131:112
      anonymous

      Comment


        #4
        Thanks for the extra info - a fix has been added for tomorrow's builds.

        Comment


          #5
          SmartClient Version: v11.1p_2017-11-20/AllModules Development Only (built 2017-11-20)

          Hello, I've still an error in Chrome and Safari.

          Chrome Version 62.0.3202.94 (64 bit) on Mac OSX High Sierra:

          Code:
          11:21:25.534:MMV5:WARN:Log:TypeError: Cannot read property '$1245' of undefined
          Stack from error.stack:
              _3.dragRepositionMove(<no args: exited>) on [Canvas ID:eventCalendar_weekView_eventDragTarget] @ ISC_Calendar.js:40:123
              [c]EventHandler.bubbleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2047:89
              [c]EventHandler.handleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1795:351
              [c]EventHandler.handleDragMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1966:48
              EventHandler.__handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1866:27
              EventHandler._handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1856:244
              [c]EventHandler.handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1856:11
              [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseMove(), _2=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2133:108
              HTMLDocument.eval(event=>[object MouseEvent]) @ [no file]:3:123
          Safari on Mac OSX High Sierra:

          Code:
          11:23:59.351:MMV7:WARN:Log:TypeError: undefined is not an object (evaluating '_1.$1245')
          Stack from error.stack:
          dragRepositionMove@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Calendar.js?isc_version=v11.1p_2017-11-20.js:40:122
          isc_c_EventHandler_bubbleEvent@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:2047:89
          isc_c_EventHandler_handleEvent@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:1795:362
          isc_c_EventHandler_handleDragMove@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:1966:59
          isc_c_EventHandler___handleMouseMove@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:1866:41
          isc_c_EventHandler__handleMouseMove@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:1856:247
          isc_c_EventHandler_handleMouseMove@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:1856:14
          isc_c_EventHandler_dispatch@https://www-demos.smartclient.com/smartclient-release/isomorphic/system/modules/ISC_Core.js?isc_version=v11.1p_2017-11-20.js:2133:112
          anonymous

          Comment


            #6
            We made an additional change yesterday which should fix this - you can retest in today's build.

            Comment


              #7
              SmartClient Version: v11.1p_2017-11-22/AllModules Development Only (built 2017-11-22)

              Thanks, actually this seems fixed, but there's another problem.
              Please try this:
              - right click on an event, so that the native context menu is shown
              - click outside (don't use ESC) to close the context menu

              You'll notice that a small red rectangle appears:
              Click image for larger version

Name:	2017-11-22 16.01.01.jpg
Views:	262
Size:	8.9 KB
ID:	250505

              also, if you click in that first column (Sun 11/19) the event editor doesn't show.
              But if you click in a cell of another day where the event editor appears, and then close it, and then mouse over that red rectangle, an error appears in the developer console:
              Code:
              16:06:47.710:MMV0:WARN:Log:TypeError: Cannot read property 'event' of undefined
              Stack from error.stack:
                  _3.getHoverHTML(<no args: exited>) on [Canvas ID:eventCalendar_weekView_eventDragTarget] @ ISC_Calendar.js:36:967
                  Calendar._mouseMoved(<no args: exited>) on [Calendar ID:eventCalendar] @ ISC_Calendar.js:510:298
                  CalendarView.mouseMove(<no args: exited>) on [WeekSchedule ID:eventCalendar_weekView] @ ISC_Calendar.js:89:547
                  Canvas.handleMouseMove(<no args: exited>) on [WeekSchedule ID:eventCalendar_weekView] @ ISC_Core.js:3378:31
                  [c]EventHandler.bubbleEvent(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:2047:89
                  EventHandler.__handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1874:126
                  EventHandler._handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1856:244
                  [c]EventHandler.handleMouseMove(<no args: exited>) on [Class EventHandler] @ ISC_Core.js:1856:11
                  [c]EventHandler.dispatch(_1=>[c]EventHandler.handleMouseMove(), _2=>[object MouseEvent]) on [Class EventHandler] @ ISC_Core.js:2133:108
                  HTMLDocument.eval(event=>[object MouseEvent]) @ [no file]:3:123

              Comment


                #8
                Hello, I forgot to say that I've tested it with Chrome, Safari and Firefox on High Sierra.
                Firefox has a sligthly different behaviour: it doesn't show that small red rectangle.

                Comment


                  #9
                  Hello, any news about this issue?
                  It's still present in
                  SmartClient Version: v11.1p_2017-12-14/Enterprise Development Only (built 2017-12-14)

                  Comment


                    #10
                    No news on a fix as yet - we'll take another look and get back to you shortly.

                    Comment


                      #11
                      Thanks for the detailed report - we just reproduced the issue and it's been addressed for builds dated December 16 and later.

                      Comment


                        #12
                        SmartClient Version: SNAPSHOT_v12.0d_2017-12-16/AllModules Development Only (built 2017-12-16)

                        Chrome and Safari on OSX High Sierra


                        Hello, it seems fixed, but there's another problem.
                        Please try this:
                        - right click on an event, so that the native context menu is shown
                        - use ESC to close the context menu
                        - you'll see the red rectangle which represents the drag target of the event, so if you'll click on another day you'll drop it.


                        ps: with Firefox it doesn't happen.

                        Comment


                          #13
                          Is there a particular sample you're using here?

                          Comment


                            #14
                            The #databoundCalendar sample, without changes.

                            Comment


                              #15
                              Hi all,

                              I just tried it as well, but don't see the effect/error from #12 in Chromium 63.0.3239.84 / Win10 in the online sample (built 2017-12-16).

                              Best regards
                              Blama

                              Comment

                              Working...
                              X