Jelajahi Sumber

fix: can now remove annotation tags without popover closing

Torkel Ödegaard 8 tahun lalu
induk
melakukan
2992fb4b0e
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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