   # see Modal#hideModal
   dismissEditor: (e) =>
     @setState isEditingDescription: false if e.button == 0 &&
-                                  e.target == @overlay.current &&
+                                  e.target == @overlayRef.current &&
                                   @clickEndTarget == @clickStartTarget
 
 

  constructor: (props) ->
    super props

    @overlay = React.createRef()

    @state =
      isBusy: false


              div
                className: 'beatmap-success-rate__chart'
                ref: @chartAreaRef
          else
            div className: 'beatmap-success-rate',
              div
