Просмотр исходного кода

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

ryanMushy 4 лет назад
Родитель
Сommit
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({
 BlazeComponent.extendComponent({
   onDestroyed() {
   onDestroyed() {
     commentFormIsOpen.set(false);
     commentFormIsOpen.set(false);
+    $(".note-popover").hide();
   },
   },
 
 
   commentFormIsOpen() {
   commentFormIsOpen() {

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

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