 
 
   hideSelector: (e) =>
-    return if e.button != 0
-    return unless @state.showingSelector
-    return if $(e.target).closest(@ref.current).length
-
-    @setState showingSelector: false
+    @setState showingSelector: false if e.button == 0
 
 
   itemSelected: (event, item) ->



  componentWillUnmount: ->
    document.removeEventListener 'click', @hideSelector


  render: =>



  componentDidMount: =>
    element.addEventListener 'click', @hideSelector for element in Blackout.el


  componentDidUpdate: (_prevProps, prevState) =>
