Browse Source

Fix edge case in popover

Svilen Markov 8 tháng trước cách đây
mục cha
commit
1b42312d02
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      internal/assets/static/js/popover.js

+ 2 - 0
internal/assets/static/js/popover.js

@@ -56,6 +56,8 @@ function clearTogglePopoverTimeout() {
 }
 
 function showPopover() {
+    if (pendingTarget === null) return;
+
     activeTarget = pendingTarget;
     pendingTarget = null;