                 select
                   className: 'bbcode-size-select__select js-bbcode-btn--size'
                   disabled: @props.disabled
-                  defaultValue: '100'
+                  ref: @setSizeSelect
                   option value: '50', osu.trans('bbcode.size.tiny')
                   option value: '85', osu.trans('bbcode.size.small')
                   option value: '100', osu.trans('bbcode.size.normal')


class @BBCodeEditor extends React.Component
  componentDidMount: =>
    @body.focus()



    @body = element


  setSizeSelect: (element) =>
    @sizeSelect = element


  onKeyDown: (e) =>
    e.keyCode == 27 && @_cancel()

