Procházet zdrojové kódy

fix: can now remove annotation tags without popover closing

Torkel Ödegaard před 8 roky
rodič
revize
2992fb4b0e
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      public/vendor/tagsinput/bootstrap-tagsinput.js

+ 2 - 0
public/vendor/tagsinput/bootstrap-tagsinput.js

@@ -358,6 +358,8 @@
       // Remove icon clicked
       self.$container.on('click', '[data-role=remove]', $.proxy(function(event) {
         self.remove($(event.target).closest('.tag').data('item'));
+        // Grafana mod, if tags input used in popover the click event will bubble up and hide popover
+        event.stopPropagation();
       }, self));
 
       // Only add existing value as tags when using strings as tags