浏览代码

popover needs to be destroyed anytime the details panel is closed.

ryanMushy 4 年之前
父节点
当前提交
f2d5698acb
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      client/components/activities/comments.js
  2. 1 0
      client/components/cards/cardDescription.js

+ 1 - 0
client/components/activities/comments.js

@@ -3,6 +3,7 @@ const commentFormIsOpen = new ReactiveVar(false);
 BlazeComponent.extendComponent({
   onDestroyed() {
     commentFormIsOpen.set(false);
+    $(".note-popover").hide();
   },
 
   commentFormIsOpen() {

+ 1 - 0
client/components/cards/cardDescription.js

@@ -3,6 +3,7 @@ const descriptionFormIsOpen = new ReactiveVar(false);
 BlazeComponent.extendComponent({
   onDestroyed() {
     descriptionFormIsOpen.set(false);
+    $(".note-popover").hide();
   },
 
   descriptionFormIsOpen() {