 
   getDefaultProps: ->
     anchor: null
+    required: false
     onSubmit: Function.prototype
     onCancel: Function.prototype
 


    @setState {root}

    React.render <DropdownForm anchor={@getDOMNode()} onSubmit={@handleSubmit} onCancel={@handleCancel}>
      {@props.children}
    </DropdownForm>, root


    console.log 'Will anchor to', @props.anchor

  handleGlobalKeyDown: (e) ->
    unless @props.required
      if e.which is ESC_KEY
        @props.onCancel arguments...

  render: ->
    <div className="dropdown-form-underlay" style={@underlayStyle} onClick={@handleUnderlayClick}>
