 
 
   componentDidMount: =>
+    @tooltipHideEvent = @tooltipElement().qtip('option', 'hide.event')
     $(window).on 'throttled-resize.#{@uuid}', @resize
     $(document).on "turbolinks:before-cache.#{@uuid}", () =>
       @removePortal()

    @portal.style.top = "#{Math.floor(top + $element.height() / 2)}px"
    @portal.style.left = "#{Math.floor(left + $element.width())}px"

    if @context?
      tooltipElement = $(@context).closest('.qtip')[0]
      @portal.style.zIndex = +tooltipElement.style.zIndex + 1




  toggle: =>
    @setState active: !@state.active


  tooltipElement: =>
    $(@context).closest('.qtip')


  addPortal: =>
