Hide tooltip manually

This fixes the not dissapearing tooltip issue on Firefox after toggling label priority
This commit is contained in:
Alfredo Sumaran 2016-06-16 12:52:11 -05:00
parent 666b565168
commit 39e77651a2

View file

@ -27,6 +27,11 @@ class @LabelManager
$btn = $(e.currentTarget)
$label = $("##{$btn.data('domId')}")
action = if $btn.parents('.js-prioritized-labels').length then 'remove' else 'add'
# Make sure tooltip will hide
$tooltip = $ "##{$btn.find('.has-tooltip:visible').attr('aria-describedby')}"
$tooltip.tooltip 'destroy'
_this.toggleLabelPriority($label, action)
toggleLabelPriority: ($label, action, persistState = true) ->