         i className: 'fas fa-ellipsis-v'
 
       if @props.usePortal
-        @portal ?= document.createElement('div')
         createPortal @renderMenu(), @portal
 
       else

    @uuid = osu.uuid()
    @menu = createRef()

    @state =
      active: false


  componentDidUpdate: (_prevProps, prevState) =>

    @setState active: !@state.active


  addPortal: =>
    if @portal? && !@portalAdded
      @body.appendChild @portal
      @portalAdded = true


  removePortal: =>
    if @portal? && @portalAdded
      @body.removeChild @portal
      @portalAdded = false


  render: =>
    div
      className: 'play-detail-menu'
