Explorar o código

fix: can now remove annotation tags without popover closing

Torkel Ödegaard %!s(int64=8) %!d(string=hai) anos
pai
achega
2992fb4b0e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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