Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1868

TypeError: $tipOff is null in function _tt_close()

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 5.0.11, 6.5.4, Freshly
    • Fix Version/s: 5.0.13, 6.5.4
    • Component/s: General
    • Security Level: Jimmy
    • Labels:

      Activity

      Hide
      neillee neillee added a comment -

      Below is a possible fix.

      function _tt_close_() {
          _tt_clearOpening_();
          _tt_clearClosing_();
        
          var tip = _tt_tip;
          if (tip && tip.desktop) { //check still attached to desktop
              // Bug ZK-1222, ZK-1594
              //
              // If the tooltip (popup) and mouse pointer overlapped, a TooltipOut event 
              // will be triggered again that closes the tooltip immediately, then another 
              // TooltipOver event will open the tooltip again...
              // 
              // FireFox only. If mouse pointer still overlapped on tooltip, do not close.
              if (zk.ff) {
                  var $tip = jq(tip.$n()),
                  $tipOff = $tip.offset(),
                  pointer = zk.currentPointer;
                  if ((pointer[0] >= $tipOff.left && pointer[0] <= ($tipOff.left + $tip.width())) &&
                      (pointer[1] >= $tipOff.top  && pointer[1] <= ($tipOff.top + $tip.height())))
                      return;
              }
              _tt_tip = _tt_ref = null;
              tip.close({sendOnOpen:true});
          } else {
           _tt_tip = _tt_ref = null;
          }
      }
      
      Show
      neillee neillee added a comment - Below is a possible fix. function _tt_close_() { _tt_clearOpening_(); _tt_clearClosing_(); var tip = _tt_tip; if (tip && tip.desktop) { //check still attached to desktop // Bug ZK-1222, ZK-1594 // // If the tooltip (popup) and mouse pointer overlapped, a TooltipOut event // will be triggered again that closes the tooltip immediately, then another // TooltipOver event will open the tooltip again... // // FireFox only. If mouse pointer still overlapped on tooltip, do not close. if (zk.ff) { var $tip = jq(tip.$n()), $tipOff = $tip.offset(), pointer = zk.currentPointer; if ((pointer[0] >= $tipOff.left && pointer[0] <= ($tipOff.left + $tip.width())) && (pointer[1] >= $tipOff.top && pointer[1] <= ($tipOff.top + $tip.height()))) return ; } _tt_tip = _tt_ref = null ; tip.close({sendOnOpen: true }); } else { _tt_tip = _tt_ref = null ; } }
      Hide
      jumperchen jumperchen added a comment -

      Bug fixed since 7/29/2013

      Show
      jumperchen jumperchen added a comment - Bug fixed since 7/29/2013

        People

        • Assignee:
          jumperchen jumperchen
          Reporter:
          neillee neillee
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: